aarch64: Fix store_v2vec_lanes.c failure
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 15 Feb 2022 18:09:34 +0000 (18:09 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 15 Feb 2022 18:09:34 +0000 (18:09 +0000)
store_v2vec_lanes.c started failing after SLP was enabled at -O2.
The test is specifically checking what happens for unvectorised code,
with the vectors being constructed from individal addition results.

gcc/testsuite/
* gcc.target/aarch64/store_v2vec_lanes.c: Add -fno-tree-vectorize.

gcc/testsuite/gcc.target/aarch64/store_v2vec_lanes.c

index 3296d04da14149d26d19da785663b87bd5ad8994..7ea8a674f4c404d53a2ee5ac133b692c4efcf069 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -fno-tree-vectorize" } */
 
 typedef long long v2di __attribute__ ((vector_size (16)));
 typedef double v2df __attribute__ ((vector_size (16)));