_ktest_mask32_u8
Classification
AVX-512, Mask, CPUID Test: AVX512BW
Header File
immintrin.h
Instruction
KTESTD k, k
Synopsis
 _ktest_mask32_u8(__mmask32 a, __mmask32 b, unsigned char* and_not);
Description
Compute the bitwise AND of 32-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[31:0] := a[31:0] AND b[31:0]
IF tmp1[31:0] == 0x0
	dst := 1
ELSE
	dst := 0
FI
tmp2[31:0] := (NOT a[31:0]) AND b[31:0]
IF tmp2[31:0] == 0x0
	MEM[and_not+7:and_not] := 1
ELSE
	MEM[and_not+7:and_not] := 0
FI