summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-ooo-group-1.c
blob: 416198354ff8549a38369a6d875e1282145d7c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

void
f (int *restrict a, int *restrict b, int *restrict c)
{
  for (int i = 0; i < 100; ++i)
    if (c[i])
      {
	a[i * 2] = b[i * 5 + 2];
	a[i * 2 + 1] = b[i * 5];
      }
}