aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr51236.c
blob: 63bfaeeb0ebbcc96846c54ebc83bf43a77f819d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O -ftree-vectorize -mavx2" } */

long foo (long *p, int i)
{
  long x = 0;

  while (--i)
    x ^= p[i];

  return x;
}