aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/O3-pr45971.c
blob: 5d4a581f2472dd8eb8315dc59af51bd0ab629770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { 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);
}