PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-sink-10.c
blob37e4d2fe687199ffc3cf677dcdc8775c14ff0bca
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-sink-details -fno-tree-pre" } */
4 int x[1024], y[1024], z[1024], w[1024];
5 void foo (void)
7 int i;
8 for (i = 1; i < 1024; ++i)
10 int a = x[i];
11 int b = y[i];
12 int c = x[i-1];
13 int d = y[i-1];
14 if (w[i])
15 z[i] = (a + b) + (c + d);
19 /* { dg-final { scan-tree-dump-times "Sinking # VUSE" 4 "sink" } } */