C.SRLI
Compressed Shift Right Logical Immediate
C.SRLI rd', imm
Logically shifts a register right by immediate.
Details
Logical right shift of rd′ by a 5-bit immediate.
Pseudocode Operation
R[rd'] = R[rd'] >> imm;
Example
C.SRLI x8, 2
Encoding
Binary Layout
100
15:13
imm
00
12:11
imm
rd'
10:8
01
7:6
Operands
-
rd'
Dest/Source (x8-x15) -
imm
Shift Amount