srli
lyszt.net covers srli and other RISC-V instructions in more detail.
Encoding format
Description
Shifts a register's bits to the right by a constant. In srli rd, rs1, shamt, the value moves right by shamt positions and zeros fill the emptied spots. Every position moved halves an unsigned value, and the result matches a division by a power of two.
Official definition
Shifts by a constant are encoded as a specialization of the I-type format. The operand to be shifted is in rs1, and the shift amount is encoded in the lower 5 bits of the I-immediate field. The right-shift type is encoded in bit 30. SLLI is a logical left shift (zeros are shifted into the lower bits); SRLI is a logical right shift (zeros are shifted into the upper bits); and SRAI is an arithmetic right shift (the original sign bit is copied into the vacated upper bits).