[PATCH] widen_mult_high_chain.c: Scan both mulq and mulx

"H.J. Lu" <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <CAMe9rOpm5VS71eqfToepvvHV1r2eFP6qm-4nbtAcpqVWH4pCkQ@mail.gmail.com>
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.
0001-widen_mult_high_chain.c-Scan-both-mulq-and-mulx.patch (text/x-patch, 1.2 KB)
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
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.