Compile gcc.target/i386/vect-cbranch-cond-any-128.c with -mtune=generic
to avoid

FAIL: gcc.target/i386/vect-cbranch-cond-any-128.c check-function-bodies f_v2di

caused by different code sequence from different default cost models.

PR testsuite/126923
* gcc.target/i386/vect-cbranch-cond-any-128.c (dg-options): Add
-mtune=generic.

-- 
H.J.
From e386d8de8d8c2f47ce270e7e5cbb4df66fc98f2a Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Thu, 20 Aug 2026 08:49:19 +0800
Subject: [PATCH] vect-cbranch-cond-any-128.c: Compile with -mtune=generic

Compile gcc.target/i386/vect-cbranch-cond-any-128.c with -mtune=generic
to avoid

FAIL: gcc.target/i386/vect-cbranch-cond-any-128.c check-function-bodies f_v2di

caused by different code sequence from different default cost models.

	PR testsuite/126923
	* gcc.target/i386/vect-cbranch-cond-any-128.c (dg-options): Add
	-mtune=generic.

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

diff --git a/gcc/testsuite/gcc.target/i386/vect-cbranch-cond-any-128.c b/gcc/testsuite/gcc.target/i386/vect-cbranch-cond-any-128.c
index b8e321306a0..6dc62626bc1 100644
--- a/gcc/testsuite/gcc.target/i386/vect-cbranch-cond-any-128.c
+++ b/gcc/testsuite/gcc.target/i386/vect-cbranch-cond-any-128.c
@@ -1,7 +1,7 @@
 /* Test cond_vec_cbranch_any<mode> for the 128-bit V_ANY_CBRANCH modes
    (V4SI, V2DI, V4SF, V2DF).  */
 /* { dg-do compile } */
-/* { dg-options "-Ofast -mavx512f -mavx512vl -mavx512dq -mprefer-vector-width=128 -fno-schedule-insns -fno-reorder-blocks -fno-schedule-insns2" } */
+/* { dg-options "-Ofast -mtune=generic -mavx512f -mavx512vl -mavx512dq -mprefer-vector-width=128 -fno-schedule-insns -fno-reorder-blocks -fno-schedule-insns2" } */
 /* { dg-final { check-function-bodies "**" "" "" } } */
 
 int       a_int[5],    b_int[5],    c_int[5];
-- 
2.55.0

Reply via email to