PSHUFLW—Shuffle Packed Low WordsInstruction Operand EncodingDescriptionCopies words from the low quadword of a 128-bit lane of the source operand and inserts them in the low quadword of the destination operand at word locations (of the respective lane) selected with the immediate operand. The 256-bit operation is similar to the in-lane operation used by the 256-bit VPSHUFD instruction, which is illustrated in Figure 4-16. For 128-bit operation, only the low 128-bit lane is operative. Each 2-bit field in the immediate operand selects the contents of one word location in the low quadword of the destination operand. The binary encodings of the immediate operand fields select words (0, 1, 2 or 3) from the low quadword of the source operand to be copied to the destination operand. The high quadword of the source operand is copied to the high quadword of the destination operand, for each 128-bit lane.Note that this instruction permits a word in the low quadword of the source operand to be copied to more than one word location in the low quadword of the destination operand.In 64-bit mode and not encoded with VEX/EVEX, using a REX prefix in the form of REX.R permits this instruction to access additional registers (XMM8-XMM15).128-bit Legacy SSE version: The destination operand is an XMM register. The source operand can be an XMM register or a 128-bit memory location. Bits (MAXVL-1:128) of the corresponding YMM destination register remain unchanged.VEX.128 encoded version: The destination operand is an XMM register. The source operand can be an XMM register or a 128-bit memory location. Bits (MAXVL-1:128) of the destination YMM register are zeroed. VEX.256 encoded version: The destination operand is an YMM register. The source operand can be an YMM register or a 256-bit memory location. EVEX encoded version: The destination operand is a ZMM/YMM/XMM registers. The source operand can be a ZMM/YMM/XMM register, a 512/256/128-bit memory location. The destination is updated according to the writemask.Opcode/InstructionOp/ En64/32 bit Mode SupportCPUID Feature FlagDescriptionF2 0F 70 /r ibPSHUFLW xmm1, xmm2/m128, imm8AV/VSSE2Shuffle the low words in xmm2/m128 based on the encoding in imm8 and store the result in xmm1.VEX.128.F2.0F.WIG 70 /r ibVPSHUFLW xmm1, xmm2/m128, imm8AV/VAVXShuffle the low words in xmm2/m128 based on the encoding in imm8 and store the result in xmm1.VEX.256.F2.0F.WIG 70 /r ibVPSHUFLW ymm1, ymm2/m256, imm8AV/VAVX2Shuffle the low words in ymm2/m256 based on the encoding in imm8 and store the result in ymm1.EVEX.128.F2.0F.WIG 70 /r ibVPSHUFLW xmm1 {k1}{z}, xmm2/m128, imm8BV/VAVX512VLAVX512BWShuffle the low words in xmm2/m128 based on the encoding in imm8 and store the result in xmm1 under write mask k1.EVEX.256.F2.0F.WIG 70 /r ibVPSHUFLW ymm1 {k1}{z}, ymm2/m256, imm8BV/VAVX512VLAVX512BWShuffle the low words in ymm2/m256 based on the encoding in imm8 and store the result in ymm1 under write mask k1.EVEX.512.F2.0F.WIG 70 /r ibVPSHUFLW zmm1 {k1}{z}, zmm2/m512, imm8BV/VAVX512BWShuffle the low words in zmm2/m512 based on the encoding in imm8 and store the result in zmm1 under write mask k1.Op/EnTuple TypeOperand 1Operand 2Operand 3Operand 4ANAModRM:reg (w)ModRM:r/m (r)imm8NABFull MemModRM:reg (w)ModRM:r/m (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.