blob: d48a635a4b8d83d455738b113988baa503d432d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* { dg-do compile } */
/* { dg-options "-O2 -msse2" } */
typedef long long __m128i __attribute__ ((__vector_size__ (16)));
__m128i foo1(__m128i __a)
{
return (__m128i)__builtin_ia32_pslldqi128 (__a, 8);
}
__m128i foo2(__m128i __a)
{
return (__m128i)__builtin_ia32_psrldqi128 (__a, 8);
}
/* { dg-final { scan-assembler "psrldq" } } */
/* { dg-final { scan-assembler "pslldq" } } */
|