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