Fix gcc.target/i386/vect-pr97352.c for -m32 -march=cascadelake
authorRichard Biener <rguenther@suse.de>
Tue, 28 Sep 2021 08:04:00 +0000 (10:04 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 28 Sep 2021 08:05:22 +0000 (10:05 +0200)
The easiest is to disable AVX2 and AVX512F explicitely.

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

* gcc.target/i386/vect-pr97352.c: Pass -mno-avx2 -mno-avx512f.

gcc/testsuite/gcc.target/i386/vect-pr97352.c

index d0e1206..f6cbf36 100644 (file)
@@ -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];