Intel 64 and IA-32 Architectures Software Developers Manual Volume 2B, Instruction Set Reference, N-Z
4-182 Vol. 2B
INSTRUCTION SET REFERENCE, N-Z
PSRLW/PSRLD/PSRLQ—Shift Packed Data Right Logical
Description
Shifts the bits in the individual data elements (words, doublewords, or quadword) in
the destination operand (first operand) to the right by the number of bits specified in
the count operand (second operand). As the bits in the data elements are shifted
right, the empty high-order bits are cleared (set to 0). If the value specified by the
count operand is greater than 15 (for words), 31 (for doublewords), or 63 (for a
quadword), then the destination operand is set to all 0s. Figure 4-10 gives an
example of shifting words in a 64-bit operand.
Opcode Instruction
64-Bit
Mode
Compat/
Leg
Mode Description
0F D1 /r PSRLW mm,
mm/m64
Valid Valid Shift words in mm right by amount
specified in mm/m64 while shifting in
0s.
66 0F D1 /r PSRLW xmm1,
xmm2/m128
Valid Valid Shift words in xmm1 right by amount
specified in xmm2/m128 while
shifting in 0s.
0F 71 /2 ib PSRLW mm,
imm8
Valid Valid Shift words in mm right by imm8
while shifting in 0s.
66 0F 71 /2
ib
PSRLW xmm1,
imm8
Valid Valid Shift words in xmm1 right by imm8
while shifting in 0s.
0F D2 /r PSRLD mm,
mm/m64
Valid Valid Shift doublewords in mm right by
amount specified in mm/m64 while
shifting in 0s.
66 0F D2 /r PSRLD xmm1,
xmm2/m128
Valid Valid Shift doublewords in xmm1 right by
amount specified in xmm2 /m128
while shifting in 0s.
0F 72 /2 ib PSRLD mm,
imm8
Valid Valid Shift doublewords in mm right by
imm8 while shifting in 0s.
66 0F 72 /2
ib
PSRLD xmm1,
imm8
Valid Valid Shift doublewords in xmm1 right by
imm8 while shifting in 0s.
0F D3 /r PSRLQ mm,
mm/m64
Valid Valid Shift mm right by amount specified in
mm/m64 while shifting in 0s.
66 0F D3 /r PSRLQ xmm1,
xmm2/m128
Valid Valid Shift quadwords in xmm1 right by
amount specified in xmm2/m128
while shifting in 0s.
0F 73 /2 ib PSRLQ mm,
imm8
Valid Valid Shift mm right by imm8 while
shifting in 0s.
66 0F 73 /2
ib
PSRLQ xmm1,
imm8
Valid Valid Shift quadwords in xmm1 right by
imm8 while shifting in 0s.