]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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 e9c2e04c0b88ac18be81f4ee8a872e6829af9db2..bd6b6bf07932f2dc3b36130d053900f12326738c 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 4e7446dfa4cbf48bd7154ab5fdb7ff114a2466fd..10712b2f7e0156ec833f4597116c16e648b97d7f 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>