testsuite: Fix Advanced SIMD failures for SVE
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 8 Apr 2021 14:00:04 +0000 (15:00 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 8 Apr 2021 14:00:04 +0000 (15:00 +0100)
This patch just adds some missing +nosve directives to Advanced
SIMD vectorisation tests.

gcc/testsuite/
* gcc.target/aarch64/asimd-mull-elem.c: Add +nosve.
* gcc.target/aarch64/pr98772.c: Likewise.
* gcc.target/aarch64/simd/vect_su_add_sub.c: Likewise.

gcc/testsuite/gcc.target/aarch64/asimd-mull-elem.c
gcc/testsuite/gcc.target/aarch64/pr98772.c
gcc/testsuite/gcc.target/aarch64/simd/vect_su_add_sub.c

index 513721c..8ee7d11 100644 (file)
@@ -3,6 +3,8 @@
 /* { dg-require-effective-target vect_float } */
 /* { dg-options "-Ofast" } */
 
+#pragma GCC target "+nosve"
+
 #include <arm_neon.h>
 
 void s_mult_i (int32_t* restrict res, int32_t* restrict a, int32_t b)
index 6632215..8259251 100644 (file)
@@ -1,5 +1,8 @@
 /* { dg-do run } */
 /* { dg-options "-O3 -save-temps" } */
+
+#pragma GCC target "+nosve"
+
 #include <stdint.h>
 #include <string.h>
 
index 921c5f1..4abb8e9 100644 (file)
@@ -1,6 +1,8 @@
 /* { dg-do compile } */
 /* { dg-options "-O3" } */
 
+#pragma GCC target "+nosve"
+
 typedef int __attribute__ ((mode (SI))) int32_t;
 typedef int __attribute__ ((mode (DI))) int64_t;
 typedef unsigned __attribute__ ((mode (SI))) size_t;