_mm_movepi8_mask
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512BW
Header File
Instruction
VPMOVB2M k, xmm
Synopsis
_mm_movepi8_mask(__m128i a);
Description
Set each bit of mask register "k" based on the most significant bit of the corresponding packed 8-bit integer in "a".
Operation
FOR j := 0 to 15
i := j*8
IF a[i+7]
k[j] := 1
ELSE
k[j] := 0
FI
ENDFOR
k[MAX:16] := 0