_mm256_testn_epi16_mask
Classification
AVX-512, Compare, CPUID Test: AVX512BW
Header File
immintrin.h
Instruction
VPTESTNMW k, ymm, ymm
Synopsis
 _mm256_testn_epi16_mask(__m256i a, __m256i 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" if the intermediate value is zero.
Operation
FOR j := 0 to 15
	i := j*16
	k[j] := ((a[i+15:i] AND b[i+15:i]) == 0) ? 1 : 0
ENDFOR
k[MAX:16] := 0