_mm_cmp_epu8_mask
Classification
AVX-512, Compare, CPUID Test: AVX512BW
Header File
immintrin.h
Instruction
VPCMPUB k, xmm, xmm, imm8
Synopsis
 _mm_cmp_epu8_mask(__m128i a, __m128i b, const int imm8);
Description
Compare packed unsigned 8-bit integers in "a" and "b" based on the comparison operand specified by "imm8", and store the results in mask vector "k".
Operation
CASE (imm8[2:0]) OF
0: OP := _MM_CMPINT_EQ
1: OP := _MM_CMPINT_LT
2: OP := _MM_CMPINT_LE
3: OP := _MM_CMPINT_FALSE
4: OP := _MM_CMPINT_NE
5: OP := _MM_CMPINT_NLT
6: OP := _MM_CMPINT_NLE
7: OP := _MM_CMPINT_TRUE
ESAC
FOR j := 0 to 15
	i := j*8
	k[j] := ( a[i+7:i] OP b[i+7:i] ) ? 1 : 0
ENDFOR
k[MAX:16] := 0