aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr68483-2.c
blob: 394dc1bac7630af9fe5d7f7ba5ad94d7100e87d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/68483 */
/* { dg-do compile } */
/* { dg-options "-O2 -msse2 -mno-sse3" } */

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

void
foo (V *a, V *b)
{
  V c = { 0, 0, 0, 0 };
  V d = { 1, 2, 3, 4 };
  *a = __builtin_shuffle (*b, c, d);
}

/* { dg-final { scan-assembler "psrldq\[^\n\r]*(4,|, 4)" } } */