aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx512f_cond_move.c
blob: c06ee263174f8e5bb8b67e1a412e2b33ab4daa1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O3 -mavx512f" } */
/* { dg-final { scan-assembler "(vpblendmd|vmovdqa32)" } } */

unsigned int x[128];
unsigned int y[128];

void
foo () 
{
  int i;
  for (i = 0; i < 128; i++)
    x[i] = y[i] > 3 ? 2 : 0;
}