aarch64: Add +nosve to two tests
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 27 Apr 2021 11:18:02 +0000 (12:18 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 27 Apr 2021 11:18:02 +0000 (12:18 +0100)
Adding +nosve is more robust than checking for command-line arguments,
since SVE can be enabled by default or indirectly via other options.

gcc/testsuite/
* gcc.target/aarch64/simd/ssra.c: Use +nosve
* gcc.target/aarch64/simd/usra.c: Likewise.

gcc/testsuite/gcc.target/aarch64/simd/ssra.c
gcc/testsuite/gcc.target/aarch64/simd/usra.c

index e9c2e04..bd6b6bf 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target aarch64*-*-* } } */
 /* { dg-options "-O3" } */
-/* { dg-skip-if "" { *-*-* } {"*sve*"} {""} } */
+
+#pragma GCC target "+nosve"
 
 #include <stdint.h>
 
index 4e7446d..10712b2 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target aarch64*-*-* } } */
 /* { dg-options "-O3" } */
-/* { dg-skip-if "" { *-*-* } {"*sve*"} {""} } */
+
+#pragma GCC target "+nosve"
 
 #include <stdint.h>