_ktest_mask16_u8
Classification
AVX-512, Mask, CPUID Test: AVX512DQ
Header File
Instruction
KTESTW k, k
Synopsis
_ktest_mask16_u8(__mmask16 a, __mmask16 b, unsigned char* and_not);
Description
Compute the bitwise AND of 16-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[15:0] := a[15:0] AND b[15:0]
IF tmp1[15:0] == 0x0
dst := 1
ELSE
dst := 0
FI
tmp2[15:0] := (NOT a[15:0]) AND b[15:0]
IF tmp2[15:0] == 0x0
MEM[and_not+7:and_not] := 1
ELSE
MEM[and_not+7:and_not] := 0
FI