_mm512_2intersect_epi64
Classification
AVX-512, Mask, CPUID Test: AVX512_VP2INTERSECT
Header File
Instruction
VP2INTERSECTQ k, zmm, zmm
Synopsis
_mm512_2intersect_epi64(__m512i a, __m512i b, __mmask8* k1, __mmask8* k2);
Description
Compute intersection of packed 64-bit integer vectors "a" and "b", and store indication of match in the corresponding bit of two mask registers specified by "k1" and "k2". A match in corresponding elements of "a" and "b" is indicated by a set bit in the corresponding bit of the mask registers.
Operation
MEM[k1+7:k1] := 0
MEM[k2+7:k2] := 0
FOR i := 0 TO 7
FOR j := 0 TO 7
match := (a.qword[i] == b.qword[j] ? 1 : 0)
MEM[k1+7:k1].bit[i] |= match
MEM[k2+7:k2].bit[j] |= match
ENDFOR
ENDFOR