sra

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

Synopsis

sra xd, xs1, xs2

Encoding

Type: R

0671112141519202425310110011xd101xs1xs20100000
funct7: 0100000
funct3: 101
opcode: 0110011

RISC-V Instruction Encoder/Decoder

open sra in rvcodecjs

Availability