Hi all,

I notice this test fails on aarch64-none-elf because the scan-assembler scans for w<num> registers when one of them can be the wzr reg since we store a 0 into *a.
This patch updates the pattern that is scanned for.

Committed as obvious with r220176.

Thanks,
Kyrill

2015-01-27  Kyrylo Tkachov  <kyrylo.tkac...@arm.com>

    * gcc.target/aarch64/store-pair-1.c: Update scan-assembler to check
    for wzr reg.
diff --git a/gcc/testsuite/gcc.target/aarch64/store-pair-1.c b/gcc/testsuite/gcc.target/aarch64/store-pair-1.c
index a726d64..a90fc61 100644
--- a/gcc/testsuite/gcc.target/aarch64/store-pair-1.c
+++ b/gcc/testsuite/gcc.target/aarch64/store-pair-1.c
@@ -9,4 +9,4 @@ int f(int *a, int b)
 }
 
 /* We should be able to produce store pair for the store of 28/29 store. */
-/* { dg-final { scan-assembler "stp\tw\[0-9\]+, w\[0-9\]+" } } */
+/* { dg-final { scan-assembler "stp\tw(\[0-9\]+)\|(zr), w\[0-9\]+" } } */

Reply via email to