Encoding:

SPECIAL

000000

rs

rt

rd

0

00000

DSRAV

010111

6

5

5

5

5

6

Format:

DSRAV rd, rt, rs 

MIPS64

Doubleword Shift Right Arithmetic Variable

Purpose:

Doubleword Shift Right Arithmetic Variable

To execute an arithmetic right-shift of a doubleword by a variable number of bits.

Description:

 GPR[rd] = GPR[rt] >> GPR[rs]   (arithmetic)

The doubleword contents of GPR rt are shifted right, duplicating the sign bit (63) into the emptied bits; the result is placed in GPR rd. The bit-shift amount in the range 0 to 63 is specified by the low-order 6 bits in GPR rs.

Restrictions:

Operation:

s        = GPR[rs]5..0
GPR[rd]   = (GPR[rt]63)s || GPR[rt]63..s

Exceptions:

Reserved Instruction