From ae5ce07a67df89dabba61414ba7dabbdabc1ee1b Mon Sep 17 00:00:00 2001 From: Mahesh Bodapati Date: Wed, 11 Jan 2017 16:20:01 +0530 Subject: [PATCH 05/54] [Patch, testsuite]: Update MicroBlaze strings test for new scan-assembly output resulting in use of $LC label ChangeLog/testsuite 2014-02-14 David Holsgrove * gcc/testsuite/gcc.target/microblaze/others/strings1.c: Update to include $LC label. Signed-off-by: David Holsgrove --- gcc/testsuite/gcc.target/microblaze/others/strings1.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/microblaze/others/strings1.c b/gcc/testsuite/gcc.target/microblaze/others/strings1.c index 7a63faf79f2..0403b7bdca9 100644 --- a/gcc/testsuite/gcc.target/microblaze/others/strings1.c +++ b/gcc/testsuite/gcc.target/microblaze/others/strings1.c @@ -1,13 +1,15 @@ /* { 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); } -- 2.17.1