blob: 069329fcf825216057f928d47cf65c679022d999 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001From 4622988b62335af6ef17d58bf10940419fd0f99f Mon Sep 17 00:00:00 2001
2From: Mahesh Bodapati <mbodapat@xilinx.com>
3Date: Sat, 26 Aug 2017 19:21:21 -0700
4Subject: [PATCH] Update MicroBlaze strings test for new scan-assembly output
5 resulting in use of $LC label
6
7ChangeLog/testsuite
8
92014-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
14Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
15Signed-off-by: Mahesh Bodapati <mbodapat@xilinx.com>
16Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
17Upstream-Status: Pending
18---
19 gcc/testsuite/gcc.target/microblaze/others/strings1.c | 6 ++++--
20 1 file changed, 4 insertions(+), 2 deletions(-)
21
22diff --git a/gcc/testsuite/gcc.target/microblaze/others/strings1.c b/gcc/testsuite/gcc.target/microblaze/others/strings1.c
23index 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--
452.14.2
46