2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr83323.c
blob6111745550f5eeb45c452eab32e32514872d8557
1 /* { dg-do run } */
2 /* { dg-options "-O3 -floop-unroll-and-jam --param unroll-jam-min-percent=0" } */
3 int x[1024], y[1024];
5 void __attribute__((noipa)) foo ()
7 for (int i = 0; i < 1024; ++i)
9 x[i] = 0;
10 for (int j = 0; j < 1024; ++j)
11 if (!y[j])
12 x[i] = 1;
16 int main()
18 y[1023] = 1;
19 foo ();
20 if (x[1] != 1)
21 __builtin_abort ();
22 return 0;