PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / scev-4.c
blob5f15d622d5cfae55fb82f331766fadd6c978915f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 typedef struct {
5 int x;
6 int y;
7 } S;
9 int *a_p;
10 S a[1000];
12 f(int k)
14 int i;
16 for (i=k; i<1000; i+=k) {
17 a_p = &a[i].y;
18 *a_p = 100;
22 /* { dg-final { scan-tree-dump-times "&a" 1 "optimized" { xfail { lp64 || llp64 } } } } */
23 /* { dg-final { cleanup-tree-dump "optimized" } } */