2 /* { dg-require-effective-target sse4 } */
3 /* { dg-options "-O2 -msse4.1" } */
6 #define CHECK_H "sse4_1-check.h"
10 #define TEST sse4_1_test
15 #include <smmintrin.h>
38 val1
.i
[0] = 0x04030201;
39 val1
.i
[1] = 0x08070605;
40 val1
.i
[2] = 0x0C0B0A09;
41 val1
.i
[3] = 0x100F0E0D;
43 res
[0] = _mm_extract_epi16 (val1
.x
, msk0
);
44 res
[1] = _mm_extract_epi16 (val1
.x
, msk1
);
45 res
[2] = _mm_extract_epi16 (val1
.x
, msk2
);
46 res
[3] = _mm_extract_epi16 (val1
.x
, msk3
);
47 res
[4] = _mm_extract_epi16 (val1
.x
, msk4
);
48 res
[5] = _mm_extract_epi16 (val1
.x
, msk5
);
49 res
[6] = _mm_extract_epi16 (val1
.x
, msk6
);
50 res
[7] = _mm_extract_epi16 (val1
.x
, msk7
);
61 for (i
= 0; i
< 8; i
++)
62 if (res
[i
] != val1
.s
[masks
[i
]])