From: Richard Sandiford Date: Tue, 27 Apr 2021 11:18:02 +0000 (+0100) Subject: aarch64: Add +nosve to two tests X-Git-Tag: upstream/12.2.0~8551 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48d88cde0307aaba46f538359123c38f70052bd2;p=platform%2Fupstream%2Fgcc.git aarch64: Add +nosve to two tests 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. --- diff --git a/gcc/testsuite/gcc.target/aarch64/simd/ssra.c b/gcc/testsuite/gcc.target/aarch64/simd/ssra.c index e9c2e04..bd6b6bf 100644 --- a/gcc/testsuite/gcc.target/aarch64/simd/ssra.c +++ b/gcc/testsuite/gcc.target/aarch64/simd/ssra.c @@ -1,6 +1,7 @@ /* { dg-do compile { target aarch64*-*-* } } */ /* { dg-options "-O3" } */ -/* { dg-skip-if "" { *-*-* } {"*sve*"} {""} } */ + +#pragma GCC target "+nosve" #include diff --git a/gcc/testsuite/gcc.target/aarch64/simd/usra.c b/gcc/testsuite/gcc.target/aarch64/simd/usra.c index 4e7446d..10712b2 100644 --- a/gcc/testsuite/gcc.target/aarch64/simd/usra.c +++ b/gcc/testsuite/gcc.target/aarch64/simd/usra.c @@ -1,6 +1,7 @@ /* { dg-do compile { target aarch64*-*-* } } */ /* { dg-options "-O3" } */ -/* { dg-skip-if "" { *-*-* } {"*sve*"} {""} } */ + +#pragma GCC target "+nosve" #include