SLLI
Shift Left Logical Immediate
SLLI rd, rs1, shamt
Shifts a register left by a constant amount.
Details
SLLI is a logical left shift by the constant encoded in the immediate field. The shift amount is the lower 5 bits (RV32I) or 6 bits (RV64I) of the immediate. Zeros are shifted into low-order bits.
Pseudocode Operation
R[rd] = R[rs1] << shamt;
Example
SLLI x10, x11, 2
Encoding
Binary Layout
0000000
31:25
shamt
24:20
rs1
19:15
001
14:12
rd
11:7
0010011
6:0
Operands
-
rd
Destination register (integer) -
rs1
Source -
shamt
Shift Amount