diff mbox

[AArch64,test,committed] Fix FAIL: gcc.target/aarch64/store-pair-1.c scan-assembler stp\tw[0-9]+, w[0-9]+

Message ID 54C7C0EA.9080701@arm.com
State New
Headers show

Commit Message

Kyrylo Tkachov Jan. 27, 2015, 4:46 p.m. UTC
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.tkachov@arm.com>

     * gcc.target/aarch64/store-pair-1.c: Update scan-assembler to check
     for wzr reg.
diff mbox

Patch

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