Assembly:

SLLV rd, rs, rt

nanoMIPS

Shift Left Logical Variable

Purpose:

Shift Left Logical Variable. Left shift word value in register $rs by shift amount in register$rt, and place the result in register $rd.

Availability:

nanoMIPS

Format:

001000

rt

rs

rd

x

0000010

000

6

5

5

5

1

7

3

Operation:

shift = GPR[rt] & 0x1f
result = GPR[rs] << shift
GPR[rd] = sign_extend(result, from_nbits=32)

Exceptions:

None.