From 9179d9da39cf6e72ab870647db893ef69316b103 Mon Sep 17 00:00:00 2001 From: Nagaraju Mekala Date: Tue, 10 Nov 2020 17:23:18 -0700 Subject: [PATCH] Update MicroBlaze strings test gcc/testsuite * gcc.target/microblaze/others/strings1.c: Update to include $LC label. --- gcc/testsuite/gcc.target/microblaze/others/strings1.c | 5 +++-- 1 file changed, 3 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..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); } -- 2.30.2