]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Generalise tree-ssa/shifts-3.c regexp
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 25 Oct 2024 11:25:42 +0000 (12:25 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 25 Oct 2024 11:25:42 +0000 (12:25 +0100)
My recent gcc.dg/tree-ssa/shifts-3.c test failed on arm-linux-gnu
because it used widen_mult_expr to do a multiplication on chars.
This patch generalises the regexp in the same way as for f3.

gcc/testsuite/
* gcc.dg/tree-ssa/shifts-3.c: Accept widen_mult for f2 too.

gcc/testsuite/gcc.dg/tree-ssa/shifts-3.c

index dcff518e630df6132998bf00a8f5da0a9daf67ed..2b1cf703b4aca05d7f1292cd0847f24c09adef32 100644 (file)
@@ -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" } } */