Patchwork [ARM,4/4] Adjust tests gcc.target/arm/pr40457-*.c

login
register
mail settings
Submitter Greta Yorsh
Date Oct. 10, 2012, 3:03 p.m.
Message ID <002301cda6f8$7923c520$6b6b4f60$@yorsh@arm.com>
Download mbox | patch
Permalink /patch/190671/
State New
Headers show

Comments

Greta Yorsh - Oct. 10, 2012, 3:03 p.m.
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.
Richard Earnshaw - Oct. 19, 2012, 2:49 p.m.
On 10/10/12 16:03, Greta Yorsh wrote:
> 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.
>

OK.

R.

Patch

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" } } */