PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / peel1.c
blob36f3ea063ea1e2bf035a152f6759d58d25abd8fc
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)
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"} } */