]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/cunroll-1.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.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 void
5 test(int c)
6 {
7 int i;
8 for (i=0;i<c;i++)
9 a[i]=5;
10 }
11 /* Array bounds says the loop will not roll much. */
12 /* { dg-final { scan-tree-dump "loop with 2 iterations completely unrolled" "cunrolli"} } */
13 /* { dg-final { scan-tree-dump "Last iteration exit edge was proved true." "cunrolli"} } */