REMUW
Remainder Unsigned Word
REMUW rd, rs1, rs2
Computes the remainder of 32-bit unsigned division, sign-extending the result.
Details
REMUW computes the unsigned 32-bit remainder of rs1 ÷ rs2, zero-extends to 64 bits, and writes to rd (RV64 only).
Pseudocode Operation
R[rd] = sext(R[rs1][31:0] %u R[rs2][31:0]);
Example
REMUW x10, x11, x12
Encoding
Binary Layout
0000001
31:25
rs2
24:20
rs1
19:15
111
14:12
rd
11:7
0111011
6:0
Operands
-
rd
Remainder -
rs1
Dividend -
rs2
Divisor