x86: Disable AVX on pr86722.c and pr90356.c

SSE/SSE2 are enabled explicitly on pr86722.c and pr90356.c.  Disable AVX
to avoid AVX with -march=native.

	PR target/86722
	PR tree-optimization/90356
	* gcc.target/i386/pr86722.c: Add -mno-avx.
	* gcc.target/i386/pr90356.c: Likewise.
This commit is contained in:
H.J. Lu 2022-03-21 13:57:31 -07:00
parent d0363a8069
commit bec69ac548
2 changed files with 2 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-O2 -msse" } */
/* { dg-options "-O2 -mno-avx -msse" } */
void f(double*d,double*e){
for(;d<e;++d)
@ -8,4 +8,3 @@ void f(double*d,double*e){
/* { dg-final { scan-assembler-not "andnpd" } } */
/* { dg-final { scan-assembler-not "orpd" } } */

View file

@ -1,5 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2 -msse2 -mfpmath=sse" } */
/* { dg-options "-O2 -mno-avx -msse2 -mfpmath=sse" } */
float doit(float k){
float c[2]={0.0};
c[1]+=k;