fmin.s

The `fmin.s` instruction writes smaller of `fs1` and `fs2` to `fd`. For the purposes of this instruction, the value `-0.0` is considered to be less than the value `+0.0`. If both inputs are NaNs, the result is the canonical NaN. If only one operand is a NaN, the result is the non-NaN operand. Signaling NaN inputs set the invalid operation exception flag, even when the result is not NaN. [NOTE] ==== Note that in version 2.2 of the F extension, the `fmin.s` and `fmax.s` instructions were amended to implement the proposed _IEEE 754-201x_ `minimumNumber` and `maximumNumber` operations, rather than the _IEEE 754-2008_ _minNum_ and _maxNum_ operations. These operations differ in their handling of signaling NaNs. ====

Synopsis

fmin.s fd, fs1, fs2

Encoding

Type:

0671112141519202425311010011fd000fs1fs20010100
funct7: 0010100
funct3: 000
opcode: 1010011

RISC-V Instruction Encoder/Decoder

open fmin.s in rvcodecjs

Availability