aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@baylibre.com>2024-11-07 11:23:41 +0000
committerAndrew Stubbs <ams@baylibre.com>2024-11-07 12:00:53 +0000
commit4e91d0587200cf801b42abd74a837e0b3ce635d5 (patch)
tree84e33ea2bbfb1c6abfb4a53c758f471a074e0bd2 /gcc
parent16801e4957bf2a3b7d917deb2cad3e879a9579cf (diff)
downloadgcc-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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/gomp/max_vf-1.c2
1 files changed, 1 insertions, 1 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];