Merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / scev-7.c
blobd6ceb208258cdec32da17f6519c10c10b6a6a066
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-sccp-scev" } */
4 struct struct_t
6 int* data;
7 };
9 void foo (struct struct_t* sp, int start, int end)
11 int i;
13 for (i = 1000; i+start > end; i--)
14 sp->data[i+start] = 0;
17 /* { dg-final { scan-tree-dump-times "Simplify PEELED_CHREC into POLYNOMIAL_CHREC" 1 "sccp" } } */
18 /* { dg-final { cleanup-tree-dump "sccp" } } */