]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
openmp: Fix max_vf testcases with -march=cascadelake
authorAndrew Stubbs <ams@baylibre.com>
Thu, 7 Nov 2024 11:23:41 +0000 (11:23 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Thu, 7 Nov 2024 12:00:53 +0000 (12:00 +0000)
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.

gcc/testsuite/gcc.dg/gomp/max_vf-1.c
libgomp/testsuite/libgomp.c/max_vf-1.c

index 0513aae226cecb7914eccea9f34b805114d6b092..d4617940eb2989e4ddac20c26795315d4c334659 100644 (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];
index be900c565a37265d9eee9f06555af4e59ff4266e..9c8d5dc0af97a2a514c9aa6d87fb2db5a9bbdc02 100644 (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];