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 3e5a945..5c5d869 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 6463f6c..f3be8e7 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} } } */