]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: add sve hw check to testcase [PR120817]
authorTamar Christina <tamar.christina@arm.com>
Mon, 7 Jul 2025 16:05:01 +0000 (17:05 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 9 Jul 2025 06:29:35 +0000 (08:29 +0200)
Drop down from SVE2 to SVE1 as that's the minimum
required for the test, and since it's a mid-end test
add the aarch64_sve_hw check.

gcc/testsuite/ChangeLog:

PR tree-optimization/120817
* gcc.dg/vect/pr120817.c: Add SVE HW check.

(cherry picked from commit 4b9f760c511a4ef3a390dd6cfab80bada57c2535)

gcc/testsuite/gcc.dg/vect/pr120817.c

index d8f55c9b98d222afa782624f54e28945336b71ff..199189a8b9ad11b5efa2745e555cee6508e1dd35 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-additional-options "-O1" } */
-/* { dg-additional-options "-mcpu=neoverse-n2" { target aarch64*-*-* } } */
+/* { dg-require-effective-target aarch64_sve_hw { target aarch64*-*-* } } */
+/* { dg-additional-options "-march=armv8-a+sve -mtune=neoverse-n2" { target aarch64*-*-* } } */
 
 #include "tree-vect.h"