GF2P8MULB—Galois Field Multiply BytesInstruction Operand EncodingDescriptionThe instruction multiplies elements in the finite field GF(28), operating on a byte (field element) in the first source operand and the corresponding byte in a second source operand. The field GF(28) is represented in polynomial representation with the reduction polynomial x8 + x4 + x3 + x + 1.This instruction does not support broadcasting.The EVEX encoded form of this instruction supports memory fault suppression. The SSE encoded forms of the instruction require16B alignment on their memory operations.Operationdefine gf2p8mul_byte(src1byte, src2byte):tword := 0FOR i := 0 to 7:IF src2byte.bit[i]:tword := tword XOR (src1byte<< i)* carry out polynomial reduction by the characteristic polynomial p*FOR i := 14 downto 8:p := 0x11B << (i-8) *0x11B = 0000_0001_0001_1011 in binary*IF tword.bit[i]:tword := tword XOR preturn tword.byte[0]Opcode/InstructionOp/En64/32 bit Mode SupportCPUID Feature FlagDescription66 0F38 CF /rGF2P8MULB xmm1, xmm2/m128AV/VGFNIMultiplies elements in the finite field GF(2^8). VEX.128.66.0F38.W0 CF /rVGF2P8MULB xmm1, xmm2, xmm3/m128BV/VAVXGFNIMultiplies elements in the finite field GF(2^8). VEX.256.66.0F38.W0 CF /rVGF2P8MULB ymm1, ymm2, ymm3/m256BV/VAVXGFNIMultiplies elements in the finite field GF(2^8).EVEX.128.66.0F38.W0 CF /rVGF2P8MULB xmm1{k1}{z}, xmm2, xmm3/m128CV/VAVX512VLGFNIMultiplies elements in the finite field GF(2^8).EVEX.256.66.0F38.W0 CF /rVGF2P8MULB ymm1{k1}{z}, ymm2, ymm3/m256CV/VAVX512VLGFNIMultiplies elements in the finite field GF(2^8).EVEX.512.66.0F38.W0 CF /rVGF2P8MULB zmm1{k1}{z}, zmm2, zmm3/m512CV/VAVX512FGFNIMultiplies elements in the finite field GF(2^8).Op/EnTupleOperand 1Operand 2Operand 3Operand 4ANAModRM:reg (r, w)ModRM:r/m (r)NANABNAModRM:reg (w)VEX.vvvv (r)ModRM:r/m (r)NACFull MemModRM:reg (w)EVEX.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.