1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 
4 int
foo(int ko)5 foo (int ko)
6 {
7  int j,i = 0;
8   for (j = 0; j < ko; j++)
9    i += (i > 10) ? -5 : 7;
10  return i;
11 }
12 
13 /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" } } */
14 /* { dg-final { scan-tree-dump "Unknown def-use cycle pattern." "vect" } } */
15