From: Nagaraju Mekala Date: Wed, 11 Nov 2020 00:23:18 +0000 (-0700) Subject: Update MicroBlaze strings test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9179d9da39cf6e72ab870647db893ef69316b103;p=gcc.git Update MicroBlaze strings test gcc/testsuite * gcc.target/microblaze/others/strings1.c: Update to include $LC label. --- diff --git a/gcc/testsuite/gcc.target/microblaze/others/strings1.c b/gcc/testsuite/gcc.target/microblaze/others/strings1.c index 7a63faf79f2..efaf3c660ea 100644 --- a/gcc/testsuite/gcc.target/microblaze/others/strings1.c +++ b/gcc/testsuite/gcc.target/microblaze/others/strings1.c @@ -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 -/* { 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); }