![](http://datasheet.mmic.net.cn/380000/-PD98501_datasheet_16745028/-PD98501_106.png)
CHAPTER 2 V
R
4120A
106
Preliminary User’s Manual S14767EJ1V0UM00
Table 2-38. Shift Instructions (2/2)
Instruction
Format and Description
Doubleword Shift Left
Logical
DSLL rx, ry, immediate
The 64-bit doubleword contents of general register ry are shifted left, and zeros are inserted into the
emptied low-order bits. The 3-bit immediate specifies the shift count. A shift count of 0 is interpreted
as a shift count of 8. The 64-bit result is placed in general register rx.
This operation is defined in the 64-bit mode and the 32-bit kernel mode. When this instruction is
executed in the 32-bit user/supervisor mode, a reserved instruction exception is generated.
Doubleword Shift Right
Logical
DSRL ry, immediate
The 64-bit doubleword contents of general register ry are shifted right, and zeros are inserted into the
emptied high-order bits. The 3-bit immediate specifies the shift count. A shift count of 0 is interpreted
as a shift count of 8. The result is placed in general register ry.
This operation is defined in the 64-bit mode and the 32-bit kernel mode. When this instruction is
executed in the 32-bit user/supervisor mode, a reserved instruction exception is generated.
Doubleword Shift Right
Arithmetic
DSRA ry, immediate
The 64-bit doubleword contents of general register ry are shifted right, and the emptied high-order bits
are sign extended. The 3-bit immediate specifies the shift count. A shift count of 0 is interpreted as a
shift count of 8. The result is placed in general register ry.
This operation is defined in the 64-bit mode and the 32-bit kernel mode. When this instruction is
executed in the 32-bit user/supervisor mode, a reserved instruction exception is generated.
Doubleword Shift Left
Logical Variable
DSLLV ry, rx
The 64-bit doubleword contents of general register ry are shifted left, and zeros are inserted into the
emptied low-order bits. The six low-order bits of general register rx specify the shift count. The result
is placed in general register ry.
This operation is defined in the 64-bit mode and the 32-bit kernel mode. When this instruction is
executed in the 32-bit user/supervisor mode, a reserved instruction exception is generated.
Doubleword Shift Right
Logical Variable
DSRLV ry, rx
The 64-bit doubleword contents of general register ry are shifted right, and zeros are inserted into the
emptied high-order bits. The six low-order bits of general register rx specify the shift count. The result
is placed in general register ry.
This operation is defined in the 64-bit mode and the 32-bit kernel mode. When this instruction is
executed in the 32-bit user/supervisor mode, a reserved instruction exception is generated.
Doubleword Shift Right
Arithmetic Variable
DSRAV ry, rx
The 64-bit doubleword contents of general register ry are shifted right, and the emptied high-order bits
are sign extended. The six low-order bits of general register rx specify the shift count. The result is
placed in general register ry.
This operation is defined in the 64-bit mode and the 32-bit kernel mode. When this instruction is
executed in the 32-bit user/supervisor mode, a reserved instruction exception is generated.