_kortest_mask8_u8
Classification
AVX-512, Mask, CPUID Test: AVX512DQ
Header File
Instruction
KORTESTB k, k
Synopsis
_kortest_mask8_u8(__mmask8 a, __mmask8 b, unsigned char* all_ones);
Description
Compute the bitwise OR of 8-bit masks "a" and "b". If the result is all zeros, store 1 in "dst", otherwise store 0 in "dst". If the result is all ones, store 1 in "all_ones", otherwise store 0 in "all_ones".
Operation
tmp[7:0] := a[7:0] OR b[7:0]
IF tmp[7:0] == 0x0
dst := 1
ELSE
dst := 0
FI
IF tmp[7:0] == 0xFF
MEM[all_ones+7:all_ones] := 1
ELSE
MEM[all_ones+7:all_ones] := 0
FI