https://gcc.gnu.org/g:4e91d0587200cf801b42abd74a837e0b3ce635d5

commit r15-5010-g4e91d0587200cf801b42abd74a837e0b3ce635d5
Author: Andrew Stubbs <a...@baylibre.com>
Date:   Thu Nov 7 11:23:41 2024 +0000

    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.

Diff:
---
 gcc/testsuite/gcc.dg/gomp/max_vf-1.c   | 2 +-
 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 0513aae226ce..d4617940eb29 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 be900c565a37..9c8d5dc0af97 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];

Reply via email to