]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/peel1.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / peel1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fno-tree-vectorize -fdump-tree-cunroll-details" } */
3 struct foo {int b; int a[3];} foo;
4 void 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 2 times." "cunroll"} } */
11 /* { dg-final { scan-tree-dump "Peeled loop 1, 3 times." "cunroll"} } */