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.

Tested on x86_64-unknown-linux-gnu, pushed.

        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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-24.c 
b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-24.c
index 35459d5d5b9..5281dfa0a02 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-24.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-24.c
@@ -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);
-- 
2.51.0

Reply via email to