openmp: Fix max_vf testcases with -march=cascadelake

Apparently we need to explicitly disable AVX, not just enabled SSE, to
guarentee the 16-lane vectors we need for the pattern match.

libgomp/ChangeLog:

	* testsuite/libgomp.c/max_vf-1.c: Add -mno-avx.

gcc/testsuite/ChangeLog:

	* gcc.dg/gomp/max_vf-1.c: Add -mno-avx.
This commit is contained in:
Andrew Stubbs 2024-11-07 11:23:41 +00:00
parent 16801e4957
commit 4e91d05872
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
/* { dg-options "-fopenmp -O2 -fdump-tree-ompexp" } */
/* Fix a max_vf size so we can scan for it.
{ dg-additional-options "-msse2" { target { x86_64-*-* i?86-*-* } } } */
{ dg-additional-options "-msse2 -mno-avx" { target { x86_64-*-* i?86-*-* } } } */
#define N 1024
int a[N], b[N], c[N];

View file

@ -7,7 +7,7 @@
/* { dg-options "-fopenmp -O2 -fdump-tree-ompexp -foffload=-fdump-tree-optimized" } */
/* Fix a max_vf size so we can scan for it.
{ dg-additional-options "-msse2" { target { x86_64-*-* i?86-*-* } } } */
{ dg-additional-options "-msse2 -mno-avx" { target { x86_64-*-* i?86-*-* } } } */
#define N 1024
int a[N], b[N], c[N];