[PATCH] xop-pcmov3.c: Disable AVX512F

"H.J. Lu" <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <CAMe9rOqQjFtyG=rgFNN0H=+PcN7gW-ppD2iNx32kM2GgVT-oVQ@mail.gmail.com>
Since the *avx512vl_vternlogv4si_all pattern is enabled by TARGET_AVX512VL
or TARGET_AVX512F && !TARGET_PREFER_AVX256, disable AVX512F to avoid

FAIL: gcc.target/i386/xop-pcmov3.c scan-assembler vpcmov

when TARGET_PREFER_AVX256 isn't enabled by default.

PR testsuite/126923
* gcc.target/i386/xop-pcmov3.c (dg-options): Replace -mno-avx512vl
with -mno-avx512f.

-- 
H.J.
0001-xop-pcmov3.c-Disable-AVX512F.patch (text/x-patch, 1.2 KB)
From fab0a726266023238bd9121c6a893c198a20d94d Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Wed, 19 Aug 2026 06:29:57 +0800
Subject: [PATCH] xop-pcmov3.c: Disable AVX512F

Since the *avx512vl_vternlogv4si_all pattern is enabled by TARGET_AVX512VL
or TARGET_AVX512F && !TARGET_PREFER_AVX256, disable AVX512F to avoid

FAIL: gcc.target/i386/xop-pcmov3.c scan-assembler vpcmov

when TARGET_PREFER_AVX256 isn't enabled by default.

	PR testsuite/126923
	* gcc.target/i386/xop-pcmov3.c (dg-options): Replace -mno-avx512vl
	with -mno-avx512f.

Signed-off-by: H.J. Lu <[email protected]>
---
 gcc/testsuite/gcc.target/i386/xop-pcmov3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/xop-pcmov3.c b/gcc/testsuite/gcc.target/i386/xop-pcmov3.c
index ea03d55a2e6..c7ecc21c9df 100644
--- a/gcc/testsuite/gcc.target/i386/xop-pcmov3.c
+++ b/gcc/testsuite/gcc.target/i386/xop-pcmov3.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -mxop -mno-avx512vl" } */
+/* { dg-options "-O2 -mxop -mno-avx512f" } */
 typedef int v4si __attribute__ ((vector_size (16)));
 
 v4si foo(v4si c, v4si t, v4si f)
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.