PEXTRB/PEXTRD/PEXTRQ — Extract Byte/Dword/QwordInstruction Operand EncodingDescriptionExtract a byte/dword/qword integer value from the source XMM register at a byte/dword/qword offset determined from imm8[3:0]. The destination can be a register or byte/dword/qword memory location. If the destination is a register, the upper bits of the register are zero extended.In legacy non-VEX encoded version and if the destination operand is a register, the default operand size in 64-bit mode for PEXTRB/PEXTRD is 64 bits, the bits above the least significant byte/dword data are filled with zeros. PEXTRQ is not encodable in non-64-bit modes and requires REX.W in 64-bit mode.Note: In VEX.128 encoded versions, VEX.vvvv is reserved and must be 1111b, VEX.L must be 0, otherwise the instruction will #UD. In EVEX.128 encoded versions, EVEX.vvvv is reserved and must be 1111b, EVEX.L”L must be Opcode/InstructionOp/ En64/32 bit Mode SupportCPUID Feature FlagDescription66 0F 3A 14/r ibPEXTRB reg/m8, xmm2, imm8AV/VSSE4_1Extract a byte integer value from xmm2 at the source byte offset specified by imm8 into reg or m8. The upper bits of r32 or r64 are zeroed.66 0F 3A 16/r ibPEXTRD r/m32, xmm2, imm8AV/VSSE4_1Extract a dword integer value from xmm2 at the source dword offset specified by imm8 into r/m32.66 REX.W 0F 3A 16/r ibPEXTRQ r/m64, xmm2, imm8AV/N.E.SSE4_1Extract a qword integer value from xmm2 at the source qword offset specified by imm8 into r/m64.VEX.128.66.0F3A.W0 14 /r ibVPEXTRB reg/m8, xmm2, imm8AV1/VNOTES:1. In 64-bit mode, VEX.W1 is ignored for VPEXTRB (similar to legacy REX.W=1 prefix in PEXTRB).AVXExtract a byte integer value from xmm2 at the source byte offset specified by imm8 into reg or m8. The upper bits of r64/r32 is filled with zeros.VEX.128.66.0F3A.W0 16 /r ibVPEXTRD r32/m32, xmm2, imm8AV/VAVXExtract a dword integer value from xmm2 at the source dword offset specified by imm8 intor32/m32.VEX.128.66.0F3A.W1 16 /r ibVPEXTRQ r64/m64, xmm2, imm8AV/I22. VEX.W/EVEX.W in non-64 bit is ignored; the instructions behaves as if the W0 version is used.AVXExtract a qword integer value from xmm2 at the source dword offset specified by imm8 into r64/m64.EVEX.128.66.0F3A.WIG 14 /r ibVPEXTRB reg/m8, xmm2, imm8BV/VAVX512BWExtract a byte integer value from xmm2 at the source byte offset specified by imm8 into reg or m8. The upper bits of r64/r32 is filled with zeros.EVEX.128.66.0F3A.W0 16 /r ibVPEXTRD r32/m32, xmm2, imm8BV/VAVX512DQExtract a dword integer value from xmm2 at the source dword offset specified by imm8 into r32/m32.EVEX.128.66.0F3A.W1 16 /r ibVPEXTRQ r64/m64, xmm2, imm8BV/N.E.2AVX512DQExtract a qword integer value from xmm2 at the source dword offset specified by imm8 into r64/m64.Op/EnTuple TypeOperand 1Operand 2Operand 3Operand 4ANAModRM:r/m (w)ModRM:reg (r)imm8NABTuple1 ScalarModRM:r/m (w)ModRM:reg (r)imm8NA
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.