When BMI2 is enabled by default, both mulq and mulx can be generated.
Update widen_mult_high_chain.c to scan both mulq and mulx.

PR testsuite/126923
* gcc.target/i386/widen_mult_high_chain.c: Scan both mulq and
mulx.

-- 
H.J.
From a3097567d445254cbc8a6b1852751fbb34674b14 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Fri, 21 Aug 2026 04:33:55 +0800
Subject: [PATCH] widen_mult_high_chain.c: Scan both mulq and mulx

When BMI2 is enabled by default, both mulq and mulx can be generated.
Update widen_mult_high_chain.c to scan both mulq and mulx.

	PR testsuite/126923
	* gcc.target/i386/widen_mult_high_chain.c: Scan both mulq and
	mulx.

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

diff --git a/gcc/testsuite/gcc.target/i386/widen_mult_high_chain.c b/gcc/testsuite/gcc.target/i386/widen_mult_high_chain.c
index 7cfa42c9b3a..35bd98cb4c9 100644
--- a/gcc/testsuite/gcc.target/i386/widen_mult_high_chain.c
+++ b/gcc/testsuite/gcc.target/i386/widen_mult_high_chain.c
@@ -29,4 +29,4 @@ mulh_carry_128 (__uint128_t x, __uint128_t y)
 
 /* { dg-final { scan-assembler-not "__multi3" } } */
 /* { dg-final { scan-assembler-not "__mulOI3" } } */
-/* { dg-final { scan-assembler-times "\tmulq" 4 } } */
+/* { dg-final { scan-assembler-times "\tmul(q|x)" 4 } } */
-- 
2.55.0

Reply via email to