Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / tree-ssa / cunroll-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-cunrolli-details" } */
3 int a[2];
4 test(int c)
5
6   int i;
7   for (i=0;i<c;i++)
8     a[i]=5;
9 }
10 /* Array bounds says the loop will not roll much.  */
11 /* { dg-final { scan-tree-dump "Completely unroll loop 2 times" "cunrolli"} } */
12 /* { dg-final { scan-tree-dump "Last iteration exit edge was proved true." "cunrolli"} } */
13 /* { dg-final { cleanup-tree-dump "cunrolli" } } */