Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr83323.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
131 | 1 /* { dg-do run } */ |
2 /* { dg-options "-O3 -floop-unroll-and-jam --param unroll-jam-min-percent=0" } */ | |
3 int x[1024], y[1024]; | |
4 | |
5 void __attribute__((noipa)) foo () | |
6 { | |
7 for (int i = 0; i < 1024; ++i) | |
8 { | |
9 x[i] = 0; | |
10 for (int j = 0; j < 1024; ++j) | |
11 if (!y[j]) | |
12 x[i] = 1; | |
13 } | |
14 } | |
15 | |
16 int main() | |
17 { | |
18 y[1023] = 1; | |
19 foo (); | |
20 if (x[1] != 1) | |
21 __builtin_abort (); | |
22 return 0; | |
23 } |