REMU
Remainder Unsigned
REMU rd, rs1, rs2
Computes the unsigned remainder of division.
Encoding
Binary Layout
0000001
31:25
rs2
24:20
rs1
19:15
111
14:12
rd
11:7
0110011
6:0
Operands
-
rd
Dest (Remainder) -
rs1
Dividend -
rs2
Divisor
Example
REMU t0, a0, a1
Related
More in M
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
REMU computes the unsigned remainder of rs1 ÷ rs2, writing the result to rd. Remainder by zero yields the dividend.
Operation
R[rd] = R[rs1] %u R[rs2];