sraiw

Arithmetic shift (the original sign bit is copied into the vacated upper bits) the 32-bit value in xs1 right by shamt, and store the sign-extended result in xd.

Synopsis

sraiw xd, xs1, shamt

Encoding

Type:

0671112141519202425310011011xd101xs1shamt0100000
funct7: 0100000
funct3: 101
opcode: 0011011

RISC-V Instruction Encoder/Decoder

open sraiw in rvcodecjs

Availability