c.srai
Shift right arithmetical immediate
Arithmetic shift (the original sign bit is copied into the vacated upper bits) the value in xd right by shamt, and store the result in xd.
The xd register index should be used as xd+8 (registers x8-x15).
C.SRAI expands into srai xd, xd, shamt.
| This instruction must have data-independent timing when extension Zkt is enabled. |
Decode Variables
-
RV32
-
RV64
Bits<5> shamt = $encoding[6:2];
Bits<3> xd = $encoding[9:7];
Bits<6> shamt = {$encoding[12], $encoding[6:2]};
Bits<3> xd = $encoding[9:7];