risc-v

Definition

slli (RISC-V)

Performs a logical left shift on the value in register b by the shift amount specified by the 5-bit immediate shamt, inserting zeros into the vacated lower bits, and stores the result in register a.

slli a, b, shamt

Equivalent C code:

a = b << shamt