2 /* { dg-options "-O2 -msse2" } */
3 /* { dg-require-effective-target sse2 } */
6 #define CHECK_H "sse2-check.h"
10 #define TEST sse2_test
17 #include <emmintrin.h>
20 __attribute__((noinline
, unused
))
23 return _mm_shufflelo_epi16 (s1
, N
);
33 int m1
[4] = {0x3, 0x3<<2, 0x3<<4, 0x3<<6};
36 s1
.x
= _mm_set_epi64x (0xabcde,0xef58a234);
39 for (i
= 0; i
< 4; i
++)
40 e
[i
+4] = (s1
.a
[1]>>(16 * i
)) & 0xffff;
42 for (i
= 0; i
< 4; i
++)
43 m2
[i
] = (N
& m1
[i
])>>(2*i
);
45 for (i
= 0; i
< 4; i
++)
46 e
[i
] = (s1
.a
[0] >> (16 * m2
[i
])) & 0xffff;
48 if (check_union128i_w(u
, e
))