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