From 4e91d0587200cf801b42abd74a837e0b3ce635d5 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Thu, 7 Nov 2024 11:23:41 +0000 Subject: 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') 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]; -- cgit v1.1