aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr70406.c
blob: b75a5af450ee46b51c9f3fe8e59ac0876500d7b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
/* { dg-options "-O -mtune=pentium2 -mavx512f" } */

typedef int v4si __attribute__ ((vector_size (16)));

unsigned
foo (unsigned char i, unsigned x, v4si u, v4si v, v4si w)
{
  i &= (unsigned)~x;
  v <<= w[x];
  return i + u[x] + v[i];
}