The integer minimum/maximum instructions are arithmetic R-type instructions that return the smaller/larger of two operands.
RV32 | RV64 | Mnemonic | Instruction |
---|---|---|---|
✓ |
✓ |
max rd, rs1, rs2 |
|
✓ |
✓ |
maxu rd, rs1, rs2 |
|
✓ |
✓ |
min rd, rs1, rs2 |
|
✓ |
✓ |
minu rd, rs1, rs2 |