B-23
INSTRUCTION FORMATS AND ENCODINGS
PSLL
2
- Packed shift left
logical
NYY Y
mmxreg1 by mmxreg2
0000 1111:111100gg: 11 mmxreg1 mmxreg2
mmxreg by memory
0000 1111:111100gg: mod mmxreg r/m
mmxreg by immediate
0000 1111:011100gg: 11 110 mmxreg: imm8
data
PSRA
2
- Packed shift right
arithmetic
NYY N
mmxreg1 by mmxreg2
0000 1111:111000gg: 11 mmxreg1 mmxreg2
mmxreg by memory
0000 1111:111000gg: mod mmxreg r/m
mmxreg by immediate
0000 1111:011100gg: 11 100 mmxreg: imm8
data
PSRL
2
- Packed shift right
logical
NYY Y
mmxreg1 by mmxreg2
0000 1111:110100gg: 11 mmxreg1 mmxreg2
mmxreg by memory
0000 1111:110100gg: mod mmxreg r/m
mmxreg by immediate
0000 1111:011100gg: 11 010 mmxreg: imm8
data
PSUB - Subtract with wrap-
around
YYY N
mmxreg2 from mmxreg10000 1111:111110gg: 11 mmxreg1 mmxreg2
memory from mmxreg
0000 1111:111110gg: mod mmxreg r/m
PSUBS - Subtract signed with
saturation
YYN N
mmxreg2 from mmxreg10000 1111:111010gg: 11 mmxreg1 mmxreg2
memory from mmxreg
0000 1111:111010gg: mod mmxreg r/m
PSUBUS - Subtract unsigned
with saturation
YYN N
mmxreg2 from mmxreg10000 1111:110110gg: 11 mmxreg1 mmxreg2
memory from mmxreg
0000 1111:110110gg: mod mmxreg r/m
PUNPCKH - Unpack high data
to next larger type
YYY N
mmxreg2 to mmxreg1
0000 1111:011010gg: 11 mmxreg1 mmxreg2
memory to mmxreg
0000 1111:011010gg: mod mmxreg r/m
Table B-14. MMX Instruction Formats and Encodings (Contd.)
Instruction and Format
Encoding
BWDQ