Hello All,

for new scan-assembly output resulting in use of $LC label

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

---
gcc/testsuite/ChangeLog                               | 5 +++++
gcc/testsuite/gcc.target/microblaze/others/strings1.c | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 081be8f..9ef22c8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2020-11-09  Nagaraju Mekala  <nmek...@xilinx.com>

+       * gcc.target/microblaze/others/strings1.c: Update
+       to include $LC label.
+
+2020-11-09  Nagaraju Mekala  <nmek...@xilinx.com>
+
        * gcc.target/microblaze/long.c: New test.

2020-11-08  Iain Sandoe  <i...@sandoe.co.uk>
diff --git a/gcc/testsuite/gcc.target/microblaze/others/strings1.c 
b/gcc/testsuite/gcc.target/microblaze/others/strings1.c
index 7a63faf..efaf3c6 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 <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);
}
--
1.8.3.1

Attached is the patch.

Thanks,
Nagaraju

Attachment: 0001-Patch-testsuite-Update-MicroBlaze-strings-test.patch
Description: 0001-Patch-testsuite-Update-MicroBlaze-strings-test.patch

Reply via email to