2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / loop-33.c
blob57fd06d38df5693611beedd8703a3e8b32000c53
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-lim2-details" } */
4 int x;
5 int a[100];
7 struct a
9 int X;
10 int Y;
13 struct a arr[100];
15 void test4(unsigned b)
17 unsigned i;
19 /* And here. */
20 for (i = 0; i < 100; i++)
22 arr[b+8].X += i;
23 arr[b+9].X += i;
27 void test5(struct a *A, unsigned b)
29 unsigned i;
31 /* And here as well. */
32 for (i = 0; i < 100; i++)
34 A[b].X += i;
35 A[b+1].Y += i;
39 /* { dg-final { scan-tree-dump-times "Executing store motion of" 4 "lim2" { xfail { lp64 || llp64 } } } } */