Encoding:

SPECIAL

000000

0

00000

rt

rd

sa

DSRA

111011

6

5

5

5

5

6

Format:

DSRA rd, rt, sa

MIPS64

Doubleword Shift Right Arithmetic

Purpose:

Doubleword Shift Right Arithmetic

To execute an arithmetic right-shift of a doubleword by a fixed amount-0 to 31 bits.

Description:

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

The 64-bit 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 31 is specified by sa.

Restrictions:

Operation:

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

Exceptions:

Reserved Instruction