libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-sink-10.c
bloba35014be0383709f7c407fca83c39161ad371eaa
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-sink-details -fno-tree-vectorize -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 "sink1" } } */