]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix gcc.dg/vect/pr99102.c command line
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 8 Apr 2025 21:03:39 +0000 (22:03 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 8 Apr 2025 21:03:39 +0000 (22:03 +0100)
The aarch64_sve256_hw line forced the vector length, but didn't force
SVE itself.  This meant that the associated:

  /* { dg-final { scan-tree-dump "MASK_SCATTER_STORE" "vect"  { target aarch64_sve256_hw } } } */

wouldn't always fire.  I imagine this was tested with SVE enabled by
default, which would have masked the problem.

gcc/testsuite/
* gcc.dg/vect/pr99102.c: Force SVE when forcing the vector length.

gcc/testsuite/gcc.dg/vect/pr99102.c

index 071741f5e48a5220a9805dc78b24cd1dc545de2b..fcbf03674027b97dd36f26b024b86ef2f8e26f62 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-additional-options "-O2 -ftree-vectorize -fno-vect-cost-model -fdump-tree-vect-details" } */
-/* { dg-additional-options "-msve-vector-bits=256" { target aarch64_sve256_hw } } */
+/* { dg-additional-options "-march=armv8-a+sve -msve-vector-bits=256" { target aarch64_sve256_hw } } */
 long a[44];
 short d, e = -7;
 __attribute__((noipa)) void b(char f, short j, short k, unsigned l) {