_mm256_mask_test_epi64_mask
Classification
AVX-512, Compare, CPUID Test: AVX512F
Header File
immintrin.h
Instruction
VPTESTMQ k {k}, ymm, ymm
Synopsis
 _mm256_mask_test_epi64_mask(__mmask8 k1, __m256i a, __m256i b);
Description
Compute the bitwise AND of packed 64-bit integers in "a" and "b", producing intermediate 64-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 3
	i := j*64
	IF k1[j]
		k[j] := ((a[i+63:i] AND b[i+63:i]) != 0) ? 1 : 0
	ELSE
		k[j] := 0
	FI
ENDFOR
k[MAX:4] := 0