Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / tree-ssa / cunroll-5.c
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-cunroll-details" } */
3 int *a;
4 test(int c)
5
6   int i;
7   for (i=0;i<6;i++)
8     a[i]=5;
9 }
10 /* Basic testcase for complette unrolling.  */
11 /* { dg-final { scan-tree-dump "Completely unroll loop 5 times" "cunroll"} } */
12 /* { dg-final { scan-tree-dump "Exit condition of peeled iterations was eliminated." "cunroll"} } */
13 /* { dg-final { scan-tree-dump "Last iteration exit edge was proved true." "cunroll"} } */
14 /* { dg-final { cleanup-tree-dump "cunroll" } } */