Imported Upstream version 4.7.3
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / vect / pr30858.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3
4 int
5 foo (int ko)
6 {
7  int j,i;
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 /* { dg-final { cleanup-tree-dump "vect" } } */