Fix gcc.target/aarch64/torture/simd-abi-8.c for big-endian
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 4 Oct 2019 13:27:53 +0000 (13:27 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 4 Oct 2019 13:27:53 +0000 (13:27 +0000)
Fix a big-endian failure reported by Christophe.  Also tighten the
test so that it doesn't allow saving and restoring 128-bit vectors
as Q registers.

2019-10-04  Richard Sandiford  <richard.sandiford@arm.com>

gcc/testsuite/
* gcc.target/aarch64/torture/simd-abi-8.c: Use -mlittle-endian.
Check that there are no Q register saves or restores.

From-SVN: r276577

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/torture/simd-abi-8.c

index 3e5a945b092e66ed4630b44a9bef5a41d0ce850c..5c5d86976392c9bcf27c68e618355602387f2895 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-04  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * gcc.target/aarch64/torture/simd-abi-8.c: Use -mlittle-endian.
+       Check that there are no Q register saves or restores.
+
 2019-10-04  Richard Biener  <rguenther@suse.de>
 
        * gcc.c-torture/execute/loop-3.c: Fix undefined behavior.
index 6463f6c50664c648d863b192301ac7be824d8bf2..f3be8e76eae098d85b90d1f427ff69c0bee1719b 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-std=gnu99" } */
+/* { dg-options "-std=gnu99 -mlittle-endian" } */
 /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
 
 #include <arm_neon.h>
@@ -18,3 +18,5 @@ g (int64x2x4_t *ptr)
 
 /* { dg-final { scan-assembler-times {\tld1\t} 1 } } */
 /* { dg-final { scan-assembler-times {\tst1\t} 1 } } */
+/* { dg-final { scan-assembler-not {\tld[pr]\tq} } } */
+/* { dg-final { scan-assembler-not {\tst[pr]\tq} } } */