aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr57777.c
blob: 9c1a392aa9b613832756aa9c1846c2353579a97c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR target/57777 */
/* { dg-do assemble { target avx2 } } */
/* { dg-options "-O3 -mavx2" } */
/* { dg-additional-options "-fpic" { target fpic } } */

void
foo (unsigned long *x, int *y)
{
  static unsigned long b[2] = { 0x0UL, 0x9908b0dfUL };
  int c;
  for (c = 0; c < 512; c++)
    x[c] = b[x[c] & 1UL];
}