slli $dest, $src1, imm

Shift the contents of a register left by an amount specified in an immediate field.

Format

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

Functional Description

The slli instruction performs a left 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 right to replace lost bits.

dest = src1 << Imm;

Side Effects

None

Processor Mode

This is a user-level instruction.


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