_mm_mask_cmpneq_epu8_mask
Classification
AVX-512, Compare, CPUID Test: AVX512BW
Header File
Instruction
VPCMPUB k {k}, xmm, xmm
Synopsis
_mm_mask_cmpneq_epu8_mask(__mmask16 k1, __m128i a, __m128i b);
Description
Compare packed unsigned 8-bit integers in "a" and "b" for not-equal, and store the results in mask vector "k" using zeromask "k1" (elements are zeroed out when the corresponding mask bit is not set).
Operation
FOR j := 0 to 15
i := j*8
IF k1[j]
k[j] := ( a[i+7:i] != b[i+7:i] ) ? 1 : 0
ELSE
k[j] := 0
FI
ENDFOR
k[MAX:16] := 0