summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/cunroll-3.c
blob: 44de9606e9ce62d52122503843a78936bd82b9a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-cunrolli-details" } */
int a[1];
test(int c)
{ 
  int i;
  for (i=0;i<c;i++)
    {
      a[i]=5;
    }
}
/* If we start duplicating headers prior curoll, this loop will have 0 iterations.  */

/* { dg-final { scan-tree-dump "Completely unroll loop 1 times" "cunrolli"} } */
/* { dg-final { cleanup-tree-dump "cunrolli" } } */