PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-pre-3.c
blob7e319ed2fbdb3a7d000597e7fbebdff6f77a0cc5
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats -fno-tree-loop-im" } */
3 unsigned foo1 (unsigned a, unsigned b, unsigned j, unsigned k)
5 unsigned i;
6 for (i = 0; i != a; i++)
8 j += 4*b;
9 k += 4*a;
11 return j + k;
13 /* We should eliminate both 4*b and 4*a from the main body of the loop */
14 /* { dg-final { scan-tree-dump-times "Eliminated: 2" 1 "pre"} } */