Intel 64 and IA-32 Architectures Software Developers Manual Volume 2B, Instruction Set Reference, N-Z
Vol. 2B 4-175
INSTRUCTION SET REFERENCE, N-Z
PSRAW/PSRAD—Shift Packed Data Right Arithmetic
Description
Shifts the bits in the individual data elements (words or doublewords) in the destina-
tion 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 filled with the initial value of the sign bit of the data
element. If the value specified by the count operand is greater than 15 (for words) or
31 (for doublewords), each destination data element is filled with the initial value of
the sign bit of the element. (Figure 4-9 gives an example of shifting words in a 64-bit
operand.)
Opcode Instruction
64-Bit
Mode
Compat/
Leg Mode Description
0F E1 /r PSRAW mm,
mm/m64
Valid Valid Shift words in mm right by
mm/m64 while shifting in sign
bits.
66 0F E1 /r PSRAW xmm1,
xmm2/m128
Valid Valid Shift words in xmm1 right by
xmm2/m128 while shifting in
sign bits.
0F 71 /4 ib PSRAW mm,
imm8
Valid Valid Shift words in mm right by imm8
while shifting in sign bits
66 0F 71 /4 ib PSRAW xmm1,
imm8
Valid Valid Shift words in xmm1 right by
imm8 while shifting in sign bits
0F E2 /r PSRAD mm,
mm/m64
Valid Valid Shift doublewords in mm right
by mm/m64 while shifting in
sign bits.
66 0F E2 /r PSRAD xmm1,
xmm2/m128
Valid Valid Shift doubleword in xmm1 right
by xmm2 /m128 while shifting
in sign bits.
0F 72 /4 ib PSRAD mm,
imm8
Valid Valid Shift doublewords in mm right
by imm8 while shifting in sign
bits.
66 0F 72 /4 ib PSRAD xmm1,
imm8
Valid Valid Shift doublewords in xmm1 right
by imm8 while shifting in sign
bits.