← Home

c.slli

Shift left logical immediate

Shift the value in xd left by shamt, and store the result back in xd. C.SLLI expands into `slli xd, xd, shamt`.

This instruction has data-independent execution timing.

Assembly format

c.slli xd, shamt

Encoding

RV32

1514131211109876543210
0000xdshamt10

RV64

1514131211109876543210
000shamtxdshamt10

Decode variables

RV32

VariableBitsWidth
shamt[6:2]5
xd[11:7]5

RV64

VariableBitsWidth
shamt[12], [6:2]6
xd[11:7]5

Execution

# shamt is between 0-63
X[xd] = X[xd] << shamt;

Defined by

Zca

Access

SUVSVU
AlwaysAlwaysAlwaysAlways

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.