Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 1 | From 0d2cca275f3e85ae42dac7888d862975d65ffb36 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 |
| 4 | Subject: [PATCH 06/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 |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 20 | index 7a63faf..0403b7b 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 | -- |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 42 | 2.7.4 |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 43 | |