1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-cunroll-details -fno-tree-vectorize" } */
3 int *a;
4 void
test(int c)5 test(int c)
6 {
7   int i;
8   for (i=0;i<6;i++)
9     a[i]=5;
10 }
11 /* Basic testcase for complette unrolling.  */
12 /* { dg-final { scan-tree-dump "loop with 5 iterations completely unrolled" "cunroll"} } */
13 /* { dg-final { scan-tree-dump "Exit condition of peeled iterations was eliminated." "cunroll"} } */
14 /* { dg-final { scan-tree-dump "Last iteration exit edge was proved true." "cunroll"} } */
15