[PATCH] avx512bw-pr103750-2.c: Compile with -mtune=generic

"H.J. Lu" <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <CAMe9rOpnaa0ULoFNrRYTJMQwfu7vJ+NYDCvwiOrn6UUB4SyhQg@mail.gmail.com>
Compile avx512bw-pr103750-2.c with -mtune=generic to avoid

FAIL: gcc.target/i386/avx512bw-pr103750-2.c scan-assembler-not kmov

caused by different code sequence from different default cost models.

PR testsuite/126923
* gcc.target/i386/avx512bw-pr103750-2.c (dg-options): Add
-mtune=generic.

-- 
H.J.
0001-avx512bw-pr103750-2.c-Compile-with-mtune-generic.patch (text/x-patch, 1.2 KB)
From 50864e01999916c00e50543c963e016536a04fa8 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Thu, 20 Aug 2026 09:36:52 +0800
Subject: [PATCH] avx512bw-pr103750-2.c: Compile with -mtune=generic

Compile avx512bw-pr103750-2.c with -mtune=generic to avoid

FAIL: gcc.target/i386/avx512bw-pr103750-2.c scan-assembler-not kmov

caused by different code sequence from different default cost models.

	PR testsuite/126923
	* gcc.target/i386/avx512bw-pr103750-2.c (dg-options): Add
	-mtune=generic.

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

diff --git a/gcc/testsuite/gcc.target/i386/avx512bw-pr103750-2.c b/gcc/testsuite/gcc.target/i386/avx512bw-pr103750-2.c
index 3392e193222..2a275abc9b2 100644
--- a/gcc/testsuite/gcc.target/i386/avx512bw-pr103750-2.c
+++ b/gcc/testsuite/gcc.target/i386/avx512bw-pr103750-2.c
@@ -1,6 +1,6 @@
 /* PR target/103750 */
 /* { dg-do compile }  */
-/* { dg-options "-O2 -mavx512dq -mavx512bw -mavx512vl" } */
+/* { dg-options "-O2 -mtune=generic -mavx512dq -mavx512bw -mavx512vl" } */
 /* { dg-final { scan-assembler-not "kmov" } } */
 
 #include <immintrin.h>
-- 
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.