From 4e91d0587200cf801b42abd74a837e0b3ce635d5 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Thu, 7 Nov 2024 11:23:41 +0000 Subject: [PATCH] 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. --- 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 0513aae226c..d4617940eb2 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 be900c565a3..9c8d5dc0af9 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];