]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: aarch64: Fix failing vector structure tests on big-endian
authorJonathan Wright <jonathan.wright@arm.com>
Wed, 4 Aug 2021 08:18:52 +0000 (09:18 +0100)
committerJonathan Wright <jonathan.wright@arm.com>
Mon, 9 Aug 2021 08:58:43 +0000 (09:58 +0100)
Recent refactoring of the arm_neon.h header enabled better code
generation for intrinsics that manipulate vector structures. New
tests were also added to verify the benefit of these changes. It now
transpires that the code generation improvements are observed only on
little-endian systems. This patch restricts the code generation tests
to little-endian targets.

gcc/testsuite/ChangeLog:

2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>

* gcc.target/aarch64/vector_structure_intrinsics.c: Restrict
tests to little-endian targets.

gcc/testsuite/gcc.target/aarch64/vector_structure_intrinsics.c

index 3e7e572bf39659ecf2f17751d92a4a99a4f2bf8b..89e9de18a92dbc00e58261e4558b3cff38c7ca75 100644 (file)
@@ -263,7 +263,7 @@ TEST_ST1x3 (vst1q, uint64x2x3_t, uint64_t*, u64, x3);
 TEST_ST1x3 (vst1q, poly64x2x3_t, poly64_t*, p64, x3);
 TEST_ST1x3 (vst1q, float64x2x3_t, float64_t*, f64, x3);
 
-/* { dg-final { scan-assembler-not "mov\\t" } } */
+/* { dg-final { scan-assembler-not "mov\\t" { target aarch64_little_endian } } } */
 
 /* { dg-final { scan-assembler-times "tbl\\t" 18} }  */
 /* { dg-final { scan-assembler-times "tbx\\t" 18} }  */