Update MicroBlaze strings test
authorNagaraju Mekala <nmekala@xilinx.com>
Wed, 11 Nov 2020 00:23:18 +0000 (17:23 -0700)
committerJeff Law <law@redhat.com>
Wed, 11 Nov 2020 00:24:29 +0000 (17:24 -0700)
gcc/testsuite

* gcc.target/microblaze/others/strings1.c: Update
to include $LC label.

gcc/testsuite/gcc.target/microblaze/others/strings1.c

index 7a63faf79f22768ac279bd0ae074d8c6703713e1..efaf3c660ea172849a6bbc03f22a5fb59507dc1c 100644 (file)
@@ -1,13 +1,14 @@
 /* { dg-options "-O3" } */
+/* { dg-final { scan-assembler "\.rodata*" } } */
+/* { dg-final { scan-assembler "addik\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),\\\$LC.*" } } */
+/* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),*" } } */
 
 #include <string.h>
 
-/* { dg-final { scan-assembler "\.rodata*" } } */
 extern void somefunc (char *);
 int testfunc ()
 {
     char string2[80];
-/* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,.LC*" } } */    
     strcpy (string2, "hello");
     somefunc (string2);
 }