diff options
author | Andrew Stubbs <ams@baylibre.com> | 2024-11-07 11:23:41 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@baylibre.com> | 2024-11-07 12:00:53 +0000 |
commit | 4e91d0587200cf801b42abd74a837e0b3ce635d5 (patch) | |
tree | 84e33ea2bbfb1c6abfb4a53c758f471a074e0bd2 | |
parent | 16801e4957bf2a3b7d917deb2cad3e879a9579cf (diff) | |
download | gcc-4e91d0587200cf801b42abd74a837e0b3ce635d5.zip gcc-4e91d0587200cf801b42abd74a837e0b3ce635d5.tar.gz gcc-4e91d0587200cf801b42abd74a837e0b3ce635d5.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/max_vf-1.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/max_vf-1.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/max_vf-1.c b/gcc/testsuite/gcc.dg/gomp/max_vf-1.c index 0513aae..d461794 100644 --- a/gcc/testsuite/gcc.dg/gomp/max_vf-1.c +++ b/gcc/testsuite/gcc.dg/gomp/max_vf-1.c @@ -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]; diff --git a/libgomp/testsuite/libgomp.c/max_vf-1.c b/libgomp/testsuite/libgomp.c/max_vf-1.c index be900c5..9c8d5dc 100644 --- a/libgomp/testsuite/libgomp.c/max_vf-1.c +++ b/libgomp/testsuite/libgomp.c/max_vf-1.c @@ -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]; |