summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sse2-unpack-1.c
blob: ed067082594a8dd12d22c72e7aa9eed760cf5737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O2 -msse2" } */
/* { dg-require-effective-target sse2 } */

#include <emmintrin.h>

__m128i
foo1 (__m128i s1, __m128i s2)
{
  return _mm_unpackhi_epi64 (s1, s2); 
}

__m128i
foo2 (__m128i s1, __m128i s2)
{
  return _mm_unpacklo_epi64 (s1, s2); 
}

/* { dg-final { scan-assembler "punpcklqdq" } } */
/* { dg-final { scan-assembler "punpckhqdq" } } */