PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / reassoc-25.c
blob553736bc391e7400bfbb797c1e768233cee3f418
1 /* { dg-do compile } */
2 /* { dg-options "-O2 --param tree-reassoc-width=3 -fdump-tree-reassoc1-details" } */
4 unsigned int
5 foo (int a, int b, int c, int d)
7 unsigned int s = 0;
9 s += a;
10 s += b;
11 s += c;
12 s += d;
14 return s;
17 /* Verify reassociation width was chosen to be 2. */
18 /* { dg-final { scan-tree-dump-times "Width = 2" 1 "reassoc1"} } */