public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch, testsuite]: Update MicroBlaze strings test
@ 2020-11-09  5:58 Nagaraju Mekala
  2020-11-11  0:24 ` Jeff Law
  0 siblings, 1 reply; 3+ messages in thread
From: Nagaraju Mekala @ 2020-11-09  5:58 UTC (permalink / raw)
  To: Michael Eager, gcc-patches; +Cc: Sadanand Mutyala

[-- Attachment #1: Type: text/plain, Size: 1838 bytes --]

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  <nmekala@xilinx.com>

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

2020-11-08  Iain Sandoe  <iain@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 #2: 0001-Patch-testsuite-Update-MicroBlaze-strings-test.patch --]
[-- Type: application/octet-stream, Size: 1950 bytes --]

From 838d7a00b0c1718e523c6c530a759574cd743aed Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilinx.com>
Date: Mon, 9 Nov 2020 11:18:39 +0530
Subject: [PATCH] [Patch, testsuite]: Update MicroBlaze strings test 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  <nmekala@xilinx.com>
 
+	* gcc.target/microblaze/others/strings1.c: Update 
+	to include $LC label.
+
+2020-11-09  Nagaraju Mekala  <nmekala@xilinx.com>
+
 	* gcc.target/microblaze/long.c: New test.
 
 2020-11-08  Iain Sandoe  <iain@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Patch, testsuite]: Update MicroBlaze strings test
  2020-11-09  5:58 [Patch, testsuite]: Update MicroBlaze strings test Nagaraju Mekala
@ 2020-11-11  0:24 ` Jeff Law
  2020-11-11 17:35   ` Nagaraju Mekala
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Law @ 2020-11-11  0:24 UTC (permalink / raw)
  To: Nagaraju Mekala, Michael Eager, gcc-patches; +Cc: Sadanand Mutyala


On 11/8/20 10:58 PM, Nagaraju Mekala wrote:
> 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.

Thanks.  Installed on the trunk.

jeff



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [Patch, testsuite]: Update MicroBlaze strings test
  2020-11-11  0:24 ` Jeff Law
@ 2020-11-11 17:35   ` Nagaraju Mekala
  0 siblings, 0 replies; 3+ messages in thread
From: Nagaraju Mekala @ 2020-11-11 17:35 UTC (permalink / raw)
  To: Jeff Law, Michael Eager, gcc-patches; +Cc: Sadanand Mutyala

Hi Jeff,

> -----Original Message-----
> From: Jeff Law <law@redhat.com>
> Sent: Wednesday, November 11, 2020 5:55 AM
> To: Nagaraju Mekala <nmekala@xilinx.com>; Michael Eager
> <eager@eagercon.com>; gcc-patches@gcc.gnu.org
> Cc: Sadanand Mutyala <sadanan@xilinx.com>
> Subject: Re: [Patch, testsuite]: Update MicroBlaze strings test
> 
> 
> On 11/8/20 10:58 PM, Nagaraju Mekala wrote:
> > 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.
> 
> Thanks.  Installed on the trunk.
Thanks for pushing the patch.

> 
> jeff
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-11 17:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09  5:58 [Patch, testsuite]: Update MicroBlaze strings test Nagaraju Mekala
2020-11-11  0:24 ` Jeff Law
2020-11-11 17:35   ` Nagaraju Mekala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).