The easiest is to disable AVX2 and AVX512F explicitely.

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

2021-09-28  Richard Biener  <rguent...@suse.de>

        * gcc.target/i386/vect-pr97352.c: Pass -mno-avx2 -mno-avx512f.
---
 gcc/testsuite/gcc.target/i386/vect-pr97352.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/vect-pr97352.c 
b/gcc/testsuite/gcc.target/i386/vect-pr97352.c
index d0e120600db..f6cbf368160 100644
--- a/gcc/testsuite/gcc.target/i386/vect-pr97352.c
+++ b/gcc/testsuite/gcc.target/i386/vect-pr97352.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -mavx" } */
+/* { dg-options "-O3 -mavx -mno-avx2 -mno-avx512f" } */
 
 double x[2], a[4], b[4], c[5];
 
-- 
2.31.1

Reply via email to