risc-v

Definition

srli (RISC-V)

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

srli a, b, shamt

Equivalent C code:

a = (unsigned int)b >> shamt