Computational Instructions 4-15
Table 4.7 describes the EZ4021-FC shift instructions.
Table 4.7 Shift Instructions
Instruction Format and Description
Doubleword
Shift
Left Logical
DSLL rd, rt, shamt MIPS III
Shift the 64-bit, doubleword contents of register rt left by shamt bits, inserting 0s
into the low-order bits. The bit shift count specified in shamt is in the range of 0 to
31 bits. The 64-bit result is placed into register rd
.
Doubleword
Shift
Left Logical
Plus 32
DSLL32 rd, rt, shamt MIPS III
Shift the 64-bit, doubleword contents of register rt left by shamt+32 bits, inserting
0s into the low-order bits. The bit shift count specified in shamt+32 is in the range
of 32 to 63 bits. The 64-bit result is placed into register rd
.
Doubleword
Shift
Right Arithmetic
DSRA rd, rt, shamt MIPS III
Shift the 64-bit, doubleword contents of register rt right by shamt bits,
sign-extending the high-order bits. The bit shift count specified in shamt is in the
range of 0 to 31 bits. The 64-bit result is placed into register rd
.
Doubleword
Shift
Right Arithmetic
Plus 32
DSRA32 rd, rt, shamt MIPS III
Shift the 64-bit, doubleword contents of register rt right by shamt+32 bits,
sign-extending the high-order bits. The bit shift count specified in shamt+32 is in
the range of 32 to 63 bits. The 64-bit result is placed into register rd
.
Doubleword
Shift
Right Logical
DSRL rd, rt, shamt MIPS III
Shift the 64-bit, doubleword contents of register rt right by shamt bits, inserting 0s
into the high-order bits. The bit shift count specified in shamt is in the range of 0
to 31 bits. The 64-bit result is placed into register rd
.
Doubleword
Shift
Right Logical
Plus 32
DSRL32 rd, rt, shamt MIPS III
Shift the 64-bit, doubleword contents of register rt right by shamt+32, inserting 0s
into the high-order bits. The bit shift count specified in shamt+32 is in the range of
32 to 63 bits. The 64-bit result is placed into register rd
.
Doubleword
Shift
Left Logical
Variable
DSLLV rd, rt, rs MIPS III
Shift the 64-bit, doubleword contents of register rt left. The low-order 6 bits of
register rs specify the number of bits to shift, inserting 0s into the low-order bits
of rt. The 64-bit result is placed into register rd
.
Doubleword
Shift
Right Logical
Variable
DSRLV rd, rt, rs MIPS III
Shift the contents of the low-order, 32-bit word of register rt right. The low-order
5 bits of register rs specify the number of bits to shift, inserting 0s into the
high-order bits of rt. The 32-bit result is sign-extended and placed into register rd
.
Doubleword
Shift
Right Arithmetic
Variable
DSRAV rd, rt, rs MIPS III
Shift the 64-bit, doubleword contents of register rt right. The low-order 6 bits of
register rs specify the number of bits to shift while sign-extending the high-order
bits of rt. The 64-bit result is placed into register rd
.
(Sheet 1 of 2)