REMU
Remainder Unsigned
REMU rd, rs1, rs2
Computes the unsigned remainder of division.
Details
REMU computes the unsigned remainder of rs1 ÷ rs2, writing the result to rd. Remainder by zero yields the dividend.
Pseudocode Operation
R[rd] = R[rs1] %u R[rs2];
Example
REMU t0, a0, a1
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