2 /* { dg-require-effective-target vsx_hw } */
3 /* { dg-options "-O2 -mvsx" } */
6 #define CHECK_H "sse4_1-check.h"
10 #define TEST sse4_1_test
15 #include <smmintrin.h>
25 unsigned long long ll
[NUM
];
26 unsigned char c
[NUM
* 8];
30 for (i
= 0; i
< NUM
; i
++)
32 src
.c
[(i
% 2) + (i
/ 2) * 16] = i
* i
;
34 src
.c
[(i
% 2) + (i
/ 2) * 16] |= 0x80;
37 for (i
= 0; i
< NUM
; i
+= 2)
38 dst
.x
[i
/ 2] = _mm_cvtepu8_epi64 (src
.x
[i
/ 2]);
40 for (i
= 0; i
< NUM
; i
++)
41 if (src
.c
[(i
% 2) + (i
/ 2) * 16] != dst
.ll
[i
])