PR tree-optimization/33562
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / peel1.c
blob40a1f3a213229a31701bacacf02d1373dd4bf78a
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-cunroll-details" } */
3 struct foo {int b; int a[3];} foo;
4 void add(struct foo *a,int l)
6 int i;
7 for (i=0;i<l;i++)
8 a->a[i]++;
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"} } */