C.SRAI
Compressed Shift Right Arithmetic Immediate
C.SRAI rd', imm
Arithmetically shifts a register right by immediate.
Details
Arithmetic right shift of rd′ by a 5-bit immediate.
Pseudocode Operation
R[rd'] = R[rd'] >>s imm;
Example
C.SRAI x8, 2
Encoding
Binary Layout
?
31:16
100
15:13
c_nzuimm6hi
12
01
11:10
rd_rs1_p
9:7
c_nzuimm6lo
6:2
01
1:0
Operands
-
rd'
Dest/Source -
imm
Shift Amount