remw

Calculate the remainder of signed division of the 32-bit values xs1 by xs2, and store the sign-extended result in xd. If the value in register xs2 is zero, write the sign-extended 32-bit value in xs1 into xd; If the result of the division overflows, write zero into xd;

Synopsis

remw xd, xs1, xs2

Encoding

Type: R

0671112141519202425310111011xd110xs1xs20000001
funct7: 0000001
funct3: 110
opcode: 0111011

RISC-V Instruction Encoder/Decoder

open remw in rvcodecjs

Availability