MINU

Minimum Unsigned

MINU rd, rs1, rs2

Computes the minimum of two unsigned integers.

Encoding

Binary Layout
0000101
31:25
rs2
24:20
rs1
19:15
101
14:12
rd
11:7
0110011
6:0
 
Format R-Type
Opcode 0x0A005033
Extension Zbb

Operands

  • rd
    Destination register (integer)
  • rs1
    Source register 1 (integer)
  • rs2
    Source register 2 (integer)

Example

MINU t0, a0, a1

Related

More in Zbb

Description

MINU computes the unsigned minimum of rs1 and rs2, writing the result to rd.

Operation

R[rd] = (R[rs1] <u R[rs2]) ? R[rs1] : R[rs2];