FMINM.S

Float Minimum (IEEE 754-2019)

FMINM.S rd, rs1, rs2

Minimum of two single-precision values; the result is the canonical NaN if either input is NaN.

Encoding

Binary Layout
0010100
31:25
rs2
24:20
rs1
19:15
010
14:12
rd
11:7
1010011
6:0
 
Format R-Type
Opcode 0x28002053
Extension Zfa

Operands

  • rd
    Destination floating-point register
  • rs1
    Source floating-point register 1
  • rs2
    Source floating-point register 2

Example

FMINM.S t0, a0, a1

Related

More in Zfa

Description

Defined like FMIN.S (-0.0 is less than +0.0; a signalling NaN input sets the invalid flag) except that if either input is NaN the result is the canonical NaN.

Operation

F[rd] = (isNaN(F[rs1]) || isNaN(F[rs2])) ? canonicalNaN : fmin(F[rs1], F[rs2]);