diff mbox series

[pushed] testsuite: Generalise tree-ssa/shifts-3.c regexp

Message ID mptbjz8s9rz.fsf@arm.com
State New
Headers show
Series [pushed] testsuite: Generalise tree-ssa/shifts-3.c regexp | expand

Commit Message

Richard Sandiford Oct. 25, 2024, 11:26 a.m. UTC
My recent gcc.dg/tree-ssa/shifts-3.c test failed on arm-linux-gnueabihf
because it used widen_mult_expr to do a multiplication on chars.
This patch generalises the regexp in the same way as for f3.

Tested on arm-linux-gnueabihf and aarch64-linux-gnu, pushed as obvious.

Richard


gcc/testsuite/
	* gcc.dg/tree-ssa/shifts-3.c: Accept widen_mult for f2 too.
---
 gcc/testsuite/gcc.dg/tree-ssa/shifts-3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/shifts-3.c b/gcc/testsuite/gcc.dg/tree-ssa/shifts-3.c
index dcff518e630..2b1cf703b4a 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/shifts-3.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/shifts-3.c
@@ -58,7 +58,7 @@  f6 (unsigned int x)
 /* { dg-final { scan-tree-dump-not {<[a-z]*_div_expr,} "optimized" } } */
 /* { dg-final { scan-tree-dump-not {<rshift_expr,} "optimized" } } */
 /* { dg-final { scan-tree-dump {<mult_expr, [^,]*, [^,]*, 5,} "optimized" } } */
-/* { dg-final { scan-tree-dump {<mult_expr, [^,]*, [^,]*, 9,} "optimized" } } */
+/* { dg-final { scan-tree-dump {<(?:widen_)?mult_expr, [^,]*, [^,]*, 9,} "optimized" } } */
 /* { dg-final { scan-tree-dump {<(?:widen_)?mult_expr, [^,]*, [^,]*, 22,} "optimized" } } */
 /* { dg-final { scan-tree-dump {<mult_expr, [^,]*, [^,]*, 3,} "optimized" } } */
 /* { dg-final { scan-tree-dump {<mult_expr, [^,]*, [^,]*, 100,} "optimized" } } */