Encoding:

RR

11101

rx

ry

SLLV

00100

5

3

3

5

Format:

SLLV ry, rx

MIPS16e

Shift Word Left Logical Variable

Purpose:

Shift Word Left Logical Variable

To execute a left-shift of a word by a variable number of bits.

Description:

GPR[ry] = GPR[ry] << GPR[rx]

The 32-bit contents of GPR ry are shifted left, and zeros are inserted into the emptied low-order bits; the result word is and placed back in GPR ry. The 5 low-order bits of GPR rx specify the shift amount.

Restrictions:

None

Operation:

s = GPR[Xlat(rx)]4..0
temp = GPR[Xlat(ry)](31-s)..0|| 0s
GPR[Xlat(ry)] = temp

Exceptions:

None