Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / scev-5.c
blobc2feebdfc2489937affce8663124bd7dff449da8
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fgimple -fdump-tree-ivopts" } */
4 int *a_p;
5 int a[1000];
7 void __GIMPLE (ssa,startwith ("loop"))
8 f (int k)
10 long long int i;
11 int * _1;
13 __BB(2):
14 i_5 = (long long int) k_4(D);
15 if (i_5 <= 999ll)
16 goto __BB4;
17 else
18 goto __BB3;
20 __BB(3):
21 return;
23 __BB(4):
24 goto __BB5;
26 __BB(5):
27 i_12 = __PHI (__BB6: i_9, __BB4: i_5);
28 _1 = &a[i_12];
29 a_p = _1;
30 __MEM <int[1000]> ((int *)&a)[i_12] = 100;
31 i_9 = i_5 + i_12;
32 if (i_9 <= 999ll)
33 goto __BB6;
34 else
35 goto __BB3;
37 __BB(6):
39 goto __BB5;
43 /* { dg-final { scan-tree-dump-times "&a" 1 "ivopts" } } */