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 --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" } } */ -- 2.25.1