_ktest_mask64_u8
Classification
AVX-512, Mask, CPUID Test: AVX512BW
Header File
Instruction
KTESTQ k, k
Synopsis
_ktest_mask64_u8(__mmask64 a, __mmask64 b, unsigned char* and_not);
Description
Compute the bitwise AND of 64-bit masks "a" and "b", and if the result is all zeros, store 1 in "dst", otherwise store 0 in "dst". Compute the bitwise NOT of "a" and then AND with "b", if the result is all zeros, store 1 in "and_not", otherwise store 0 in "and_not".
Operation
tmp1[63:0] := a[63:0] AND b[63:0]
IF tmp1[63:0] == 0x0
dst := 1
ELSE
dst := 0
FI
tmp2[63:0] := (NOT a[63:0]) AND b[63:0]
IF tmp2[63:0] == 0x0
MEM[and_not+7:and_not] := 1
ELSE
MEM[and_not+7:and_not] := 0
FI