1 /* { dg-do compile } */ 2 /* { dg-options "-O3 -fno-tree-vectorize -fdump-tree-cunroll-details" } */ 3 struct foo {int b; int a[3];} foo; add(struct foo * a,int l)4void add(struct foo *a,int l) 5 { 6 int i; 7 for (i=0;i<l;i++) 8 a->a[i]++; 9 } 10 /* { dg-final { scan-tree-dump "Loop 1 likely iterates at most 3 times." "cunroll"} } */ 11 /* { dg-final { scan-tree-dump "Peeled loop 1, 4 times." "cunroll"} } */ 12