Add qdf24xx base tuning support.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-lim-12.c
blob016ff22f39fe62f145e46ff969926d963dcd7112
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-lim2" } */
4 int a[1024];
6 void foo (int x, int z)
8 int i;
9 int y = -x;
10 for (i = 0; i < 1024; ++i)
11 a[i] = x ? y : z;
14 void bar (int x, int z)
16 int j;
17 for (j = 0; j < 1024; ++j)
19 int i;
20 int y = -j + z;
21 for (i = 0; i < 1024; ++i)
22 a[i] = x ? y : j;
26 /* { dg-final { scan-tree-dump-times "!= 0 ? " 2 "lim2" } } */