c.srai

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`.

Synopsis

c.srai xd, shamt

Encoding

Type:

012679101501shamtxd100001

RISC-V Instruction Encoder/Decoder

open c.srai in rvcodecjs

Availability