srli $dest, $src1, imm

Logically shift the contents of a register right by an amount specified in an immediate field.

Format

This is a SHI format instrucion.
31 - 26 25 - 21 20 - 16
15 - 0
111010
dest
src1
000 0000 0000 5-bit Immediate

Functional Description

The srli instruction performs a logical right shift of the contents of register src1 and stores the shifted value in register dest. The shift amount is taken from the 5-bit immediate field. The value 0 is shifted in from the left to replace lost bits.

dest = (unsigned) src1 >> Imm;

Side Effects

None

Processor Mode

This is a user-level instruction.


Last modified: Fri Feb 23 02:56:02 CST 2001