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