summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr30858.c
blob: 0af2f8e9a91ca7faf728fa15bc00584245b48f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */

int
foo (int ko)
{
 int j,i;
  for (j = 0; j < ko; j++)
   i += (i > 10) ? -5 : 7;
 return i;
}

/* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" } } */
/* { dg-final { scan-tree-dump-times "Unknown def-use cycle pattern." 1 "vect" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */