C.SLLI

Compressed Shift Left Logical Immediate

C.SLLI rd, imm

Logically shifts a register left by immediate.

Details

Logical left shift of rd (≠ x0) by a 5-bit (RV32) or 6-bit (RV64) immediate.

Pseudocode Operation

R[rd] = R[rd] << imm;

Example

C.SLLI x10, 2

Encoding

Binary Layout
000
15:13
imm
rd
12:8
imm
10
7:6
 
Format CI
Opcode 02
Extension C

Operands

  • rd
    Dest/Source
  • imm
    Shift Amount