]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make gcc.dg/vect/vect-simd-clone-24.c more robust
authorRichard Biener <rguenther@suse.de>
Fri, 5 Dec 2025 08:04:02 +0000 (09:04 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 5 Dec 2025 08:06:18 +0000 (09:06 +0100)
When -march=cascadelake is added we get 256bit vectorization by
default but there's no OMP SIMD ABI for this case with inbranch.
So add -mprefer-vector-width=512 to the testcase.

PR tree-optimization/122776
* gcc.dg/vect/vect-simd-clone-24.c: Add -mprefer-vector-width=512.

gcc/testsuite/gcc.dg/vect/vect-simd-clone-24.c

index 35459d5d5b9e6b6b9b37524d1961fa3ef7072173..5281dfa0a02c74071a70fa7f378e187bd92e0dc6 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
 /* { dg-require-effective-target vect_simd_clones } */
 /* { dg-additional-options "-fopenmp-simd --param vect-partial-vector-usage=1 -fdump-tree-dce6 -w" } */
-/* { dg-additional-options "-mavx512f" { target avx512f } } */
+/* { dg-additional-options "-mavx512f -mprefer-vector-width=512" { target avx512f } } */
 
 #pragma omp declare simd simdlen(16)
 int __attribute__((const)) baz (int x);