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

void
foo (int *x, int *y)
{
  int i;
  for (i = 0; i < 11; i++)
    y[i] = (x[i] == 1) ? i + 1 : -(i + 1);
}

/* { dg-final { cleanup-tree-dump "vect" } } */