sraw

Arithmetic shift the 32-bit value in `xs1` right by the value in the lower 5 bits of `xs2`, and store the sign-extended result in `xd`.

Synopsis

sraw xd, xs1, xs2

Encoding

Type: R

0671112141519202425310111011xd101xs1xs20100000
funct7: 0100000
funct3: 101
opcode: 0111011

RISC-V Instruction Encoder/Decoder

open sraw in rvcodecjs

Availability