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 short s
[NUM
];
26 unsigned char c
[NUM
* 2];
30 for (i
= 0; i
< NUM
; i
++)
32 src
.c
[(i
% 8) + (i
/ 8) * 16] = i
* i
;
34 src
.c
[(i
% 8) + (i
/ 8) * 16] |= 0x80;
37 for (i
= 0; i
< NUM
; i
+= 8)
38 dst
.x
[i
/ 8] = _mm_cvtepu8_epi16 (src
.x
[i
/ 8]);
40 for (i
= 0; i
< NUM
; i
++)
41 if (src
.c
[(i
% 8) + (i
/ 8) * 16] != dst
.s
[i
])