_mm512_mask_test_epi32_mask
Classification
KNC, Logical, CPUID Test: KNCNI
Header File
Instruction
VPTESTMD k {k}, zmm, zmm
Synopsis
_mm512_mask_test_epi32_mask(__mmask16 k1, __m512i a, __m512i b);
Description
Compute the bitwise AND of packed 32-bit integers in "a" and "b", producing intermediate 32-bit values, and set the corresponding bit in result mask "k" (subject to writemask "k") if the intermediate value is non-zero.
Operation
FOR j := 0 to 15
i := j*32
IF k1[j]
k[j] := ((a[i+31:i] AND b[i+31:i]) != 0) ? 1 : 0
ELSE
k[j] := 0
FI
ENDFOR
k[MAX:16] := 0