_mm256_movepi8_mask
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512BW
Header File
Instruction
VPMOVB2M k, ymm
Synopsis
_mm256_movepi8_mask(__m256i 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 31
i := j*8
IF a[i+7]
k[j] := 1
ELSE
k[j] := 0
FI
ENDFOR
k[MAX:32] := 0