From: Richard Sandiford Date: Fri, 4 Oct 2019 13:27:53 +0000 (+0000) Subject: Fix gcc.target/aarch64/torture/simd-abi-8.c for big-endian X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ced79bc4c9925c574177cb6345c26e4aad4155f;p=gcc.git Fix gcc.target/aarch64/torture/simd-abi-8.c for big-endian 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 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3e5a945b092..5c5d8697639 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-10-04 Richard Sandiford + + * 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 * gcc.c-torture/execute/loop-3.c: Fix undefined behavior. diff --git a/gcc/testsuite/gcc.target/aarch64/torture/simd-abi-8.c b/gcc/testsuite/gcc.target/aarch64/torture/simd-abi-8.c index 6463f6c5066..f3be8e76eae 100644 --- a/gcc/testsuite/gcc.target/aarch64/torture/simd-abi-8.c +++ b/gcc/testsuite/gcc.target/aarch64/torture/simd-abi-8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-std=gnu99" } */ +/* { dg-options "-std=gnu99 -mlittle-endian" } */ /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ #include @@ -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} } } */