Andrew Geissler | 10fa149 | 2020-12-11 16:25:29 -0600 | [diff] [blame^] | 1 | From ae5ce07a67df89dabba61414ba7dabbdabc1ee1b Mon Sep 17 00:00:00 2001 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 3 | Date: Wed, 11 Jan 2017 16:20:01 +0530 |
Andrew Geissler | 10fa149 | 2020-12-11 16:25:29 -0600 | [diff] [blame^] | 4 | Subject: [PATCH 05/54] [Patch, testsuite]: Update MicroBlaze strings test for |
| 5 | new scan-assembly output resulting in use of $LC label |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 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> |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 15 | --- |
| 16 | gcc/testsuite/gcc.target/microblaze/others/strings1.c | 6 ++++-- |
| 17 | 1 file changed, 4 insertions(+), 2 deletions(-) |
| 18 | |
| 19 | diff --git a/gcc/testsuite/gcc.target/microblaze/others/strings1.c b/gcc/testsuite/gcc.target/microblaze/others/strings1.c |
Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 20 | index 7a63faf79f2..0403b7bdca9 100644 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 21 | --- a/gcc/testsuite/gcc.target/microblaze/others/strings1.c |
| 22 | +++ b/gcc/testsuite/gcc.target/microblaze/others/strings1.c |
| 23 | @@ -1,13 +1,15 @@ |
| 24 | /* { dg-options "-O3" } */ |
| 25 | |
| 26 | +/* { dg-final { scan-assembler "\.rodata*" } } */ |
| 27 | +/* { 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.*" } } */ |
| 28 | +/* { 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]),*" } } */ |
| 29 | + |
| 30 | #include <string.h> |
| 31 | |
| 32 | -/* { dg-final { scan-assembler "\.rodata*" } } */ |
| 33 | extern void somefunc (char *); |
| 34 | int testfunc () |
| 35 | { |
| 36 | char string2[80]; |
| 37 | -/* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r0,.LC*" } } */ |
| 38 | strcpy (string2, "hello"); |
| 39 | somefunc (string2); |
| 40 | } |
| 41 | -- |
Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 42 | 2.17.1 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 43 | |