Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame^] | 1 | From 4622988b62335af6ef17d58bf10940419fd0f99f Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Sat, 26 Aug 2017 19:21:21 -0700 |
| 4 | Subject: [PATCH] Update MicroBlaze strings test for new scan-assembly output |
| 5 | resulting in use of $LC label |
| 6 | |
| 7 | ChangeLog/testsuite |
| 8 | |
| 9 | 2014-02-14 David Holsgrove <david.holsgrove@xilinx.com> |
| 10 | |
| 11 | * gcc/testsuite/gcc.target/microblaze/others/strings1.c: Update |
| 12 | to include $LC label. |
| 13 | |
| 14 | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> |
| 15 | Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com> |
| 16 | Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> |
| 17 | Upstream-Status: Pending |
| 18 | --- |
| 19 | gcc/testsuite/gcc.target/microblaze/others/strings1.c | 6 ++++-- |
| 20 | 1 file changed, 4 insertions(+), 2 deletions(-) |
| 21 | |
| 22 | diff --git a/gcc/testsuite/gcc.target/microblaze/others/strings1.c b/gcc/testsuite/gcc.target/microblaze/others/strings1.c |
| 23 | index 7a63faf79f..0403b7bdca 100644 |
| 24 | --- a/gcc/testsuite/gcc.target/microblaze/others/strings1.c |
| 25 | +++ b/gcc/testsuite/gcc.target/microblaze/others/strings1.c |
| 26 | @@ -1,13 +1,15 @@ |
| 27 | /* { dg-options "-O3" } */ |
| 28 | |
| 29 | +/* { dg-final { scan-assembler "\.rodata*" } } */ |
| 30 | +/* { 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.*" } } */ |
| 31 | +/* { 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]),*" } } */ |
| 32 | + |
| 33 | #include <string.h> |
| 34 | |
| 35 | -/* { dg-final { scan-assembler "\.rodata*" } } */ |
| 36 | extern void somefunc (char *); |
| 37 | int testfunc () |
| 38 | { |
| 39 | char string2[80]; |
| 40 | -/* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,.LC*" } } */ |
| 41 | strcpy (string2, "hello"); |
| 42 | somefunc (string2); |
| 43 | } |
| 44 | -- |
| 45 | 2.14.2 |
| 46 | |