public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Greta Yorsh" <greta.yorsh@arm.com>
To: "Greta Yorsh" <Greta.Yorsh@arm.com>,
	"GCC Patches" <gcc-patches@gcc.gnu.org>
Cc: "Ramana Radhakrishnan" <Ramana.Radhakrishnan@arm.com>,
	"Richard Earnshaw" <Richard.Earnshaw@arm.com>,	<nickc@redhat.com>,
	<paul@codesourcery.com>
Subject: [PATCH, ARM][4/4] Adjust tests gcc.target/arm/pr40457-*.c
Date: Wed, 10 Oct 2012 15:13:00 -0000	[thread overview]
Message-ID: <002301cda6f8$7923c520$6b6b4f60$@yorsh@arm.com> (raw)
In-Reply-To: <001601cda6f6$2b3fcea0$81bf6be0$@yorsh@arm.com>

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

As a result of adding LDRD/STRD patterns in Thumb mode, the compiler
generates LDRD/STRD instead of LDM/STM in some cases. This patch adjusts
existing tests to accept LDRD/STRD in addition to LDM/STM.

ChangeLog

gcc/testsuite

2012-09-13  Sameera Deshpande  <sameera.deshpande@arm.com>
            Greta Yorsh  <Greta.Yorsh@arm.com>

        * gcc.target/arm/pr40457-1.c: Adjust expected output.
        * gcc.target/arm/pr40457-2.c: Likewise.
        * gcc.target/arm/pr40457-3.c: Likewise.

[-- Attachment #2: 4-thumb-adjust-tests.v2.patch.txt --]
[-- Type: text/plain, Size: 1130 bytes --]

diff --git a/gcc/testsuite/gcc.target/arm/pr40457-1.c b/gcc/testsuite/gcc.target/arm/pr40457-1.c
index 815fd38..8895659 100644
--- a/gcc/testsuite/gcc.target/arm/pr40457-1.c
+++ b/gcc/testsuite/gcc.target/arm/pr40457-1.c
@@ -7,4 +7,4 @@ int bar(int* p)
   return x;
 }
 
-/* { dg-final { scan-assembler "ldm" } } */
+/* { dg-final { scan-assembler "ldrd|ldm" } } */
diff --git a/gcc/testsuite/gcc.target/arm/pr40457-2.c b/gcc/testsuite/gcc.target/arm/pr40457-2.c
index 187f7bf..5079939 100644
--- a/gcc/testsuite/gcc.target/arm/pr40457-2.c
+++ b/gcc/testsuite/gcc.target/arm/pr40457-2.c
@@ -7,4 +7,4 @@ void foo(int* p)
   p[1] = 0;
 }
 
-/* { dg-final { scan-assembler "stm" } } */
+/* { dg-final { scan-assembler "strd|stm" } } */
diff --git a/gcc/testsuite/gcc.target/arm/pr40457-3.c b/gcc/testsuite/gcc.target/arm/pr40457-3.c
index 9bd5a17..8823a80 100644
--- a/gcc/testsuite/gcc.target/arm/pr40457-3.c
+++ b/gcc/testsuite/gcc.target/arm/pr40457-3.c
@@ -7,4 +7,4 @@ void foo(int* p)
   p[1] = 0;
 }
 
-/* { dg-final { scan-assembler "stm" } } */
+/* { dg-final { scan-assembler "strd|stm" } } */

  parent reply	other threads:[~2012-10-10 15:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-10 14:48 [PATCH, ARM][0/4] Prologue/epilogue using STRD/LDRD in Thumb mode Greta Yorsh
2012-10-10 15:03 ` [PATCH, ARM][2/4] Prologue using STRD " Greta Yorsh
2012-10-18 14:41   ` Richard Earnshaw
2012-10-10 15:03 ` [PATCH, ARM][1/4] New RTL patterns for LDRD/STRD " Greta Yorsh
2012-10-18 13:54   ` Richard Earnshaw
2012-10-19 15:44     ` Greta Yorsh
2012-10-19 15:52       ` Richard Earnshaw
2012-10-19 16:54         ` Greta Yorsh
2012-10-19 17:16           ` Richard Earnshaw
2012-10-10 15:04 ` [PATCH, ARM][3/4] Epilogue using LDRD " Greta Yorsh
2012-10-19 15:03   ` Richard Earnshaw
2012-10-10 15:13 ` Greta Yorsh [this message]
2012-10-19 15:10   ` [PATCH, ARM][4/4] Adjust tests gcc.target/arm/pr40457-*.c Richard Earnshaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002301cda6f8$7923c520$6b6b4f60$@yorsh@arm.com' \
    --to=greta.yorsh@arm.com \
    --cc=Ramana.Radhakrishnan@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=nickc@redhat.com \
    --cc=paul@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).