rem

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

Synopsis

rem xd, xs1, xs2

Encoding

Type: R

0671112141519202425310110011xd110xs1xs20000001
funct7: 0000001
funct3: 110
opcode: 0110011

RISC-V Instruction Encoder/Decoder

open rem in rvcodecjs

Availability