risc-v

Definition

sll (RISC-V)

Performs a logical left shift on the value in register b by the shift amount held in the lower 5 bits of register c, inserting zeros into the vacated lower bits, and stores the result in register a.

sll a, b, c

Equivalent C code:

a = b << (c & 0x1F)