VPCMPB/VPCMPUB—Compare Packed Byte Values Into MaskInstruction Operand EncodingDescriptionPerforms a SIMD compare of the packed byte values in the second source operand and the first source operand and returns the results of the comparison to the mask destination operand. The comparison predicate operand (imme-diate byte) specifies the type of comparison performed on each pair of packed values in the two source operands. The result of each comparison is a single mask bit result of 1 (comparison true) or 0 (comparison false).VPCMPB performs a comparison between pairs of signed byte values.VPCMPUB performs a comparison between pairs of unsigned byte values.The first source operand (second operand) is a ZMM/YMM/XMM register. The second source operand can be a ZMM/YMM/XMM register or a 512/256/128-bit memory location. The destination operand (first operand) is a mask register k1. Up to 64/32/16 comparisons are performed with results written to the destination operand under the writemask k2.Opcode/InstructionOp/En64/32 bit Mode SupportCPUID Feature FlagDescriptionEVEX.128.66.0F3A.W0 3F /r ibVPCMPB k1 {k2}, xmm2, xmm3/m128, imm8AV/VAVX512VLAVX512BWCompare packed signed byte values in xmm3/m128 and xmm2 using bits 2:0 of imm8 as a comparison predicate with writemask k2 and leave the result in mask register k1.EVEX.256.66.0F3A.W0 3F /r ibVPCMPB k1 {k2}, ymm2, ymm3/m256, imm8AV/VAVX512VLAVX512BWCompare packed signed byte values in ymm3/m256 and ymm2 using bits 2:0 of imm8 as a comparison predicate with writemask k2 and leave the result in mask register k1.EVEX.512.66.0F3A.W0 3F /r ibVPCMPB k1 {k2}, zmm2, zmm3/m512, imm8AV/VAVX512BWCompare packed signed byte values in zmm3/m512 and zmm2 using bits 2:0 of imm8 as a comparison predicate with writemask k2 and leave the result in mask register k1.EVEX.128.66.0F3A.W0 3E /r ibVPCMPUB k1 {k2}, xmm2, xmm3/m128, imm8AV/VAVX512VLAVX512BWCompare packed unsigned byte values in xmm3/m128 and xmm2 using bits 2:0 of imm8 as a comparison predicate with writemask k2 and leave the result in mask register k1.EVEX.256.66.0F3A.W0 3E /r ibVPCMPUB k1 {k2}, ymm2, ymm3/m256, imm8AV/VAVX512VLAVX512BWCompare packed unsigned byte values in ymm3/m256 and ymm2 using bits 2:0 of imm8 as a comparison predicate with writemask k2 and leave the result in mask register k1.EVEX.512.66.0F3A.W0 3E /r ibVPCMPUB k1 {k2}, zmm2, zmm3/m512, imm8AV/VAVX512BWCompare packed unsigned byte values in zmm3/m512 and zmm2 using bits 2:0 of imm8 as a comparison predicate with writemask k2 and leave the result in mask register k1.Op/EnTuple TypeOperand 1Operand 2Operand 3Operand 4AFull MemModRM:reg (w)vvvv (r)ModRM:r/m (r)NA
This UNOFFICIAL reference was generated from the official Intel® 64 and IA-32 Architectures Software Developer’s Manual by a dumb script. There is no guarantee that some parts aren't mangled or broken and is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.