Displaying 2 results from an estimated 2 matches for "fminnm".
Did you mean:
minnm
2018 Jul 26
3
RFC: What is the real behavior for the minnum/maxnum intrinsics?
...adopting them in a normative clause in the next revision. I can’t really argue against adopting them either, because they do make perfect sense.
Some notes on how these definitions align with existing architectures of interest:
ARMv8:
1. FMIN / FMAX implement the new minimum / maximum exactly.
2. FMINNM / FMAXNM implement minimumNumber / maximumNumber if we can prove no sNaNs are present. If sNaN may be present, we need to canonicalize each argument first.
X86:
1. AFAIK there’s no trivial instruction for minimum / maximum, because MINxx / MAXxx return the second argument if either is NaN. So this...
2018 Jul 23
2
RFC: What is the real behavior for the minnum/maxnum intrinsics?
Hi,
The specification for the llvm.minnum/llvm.maxnum intrinsics is too unclear right now to usefully optimize. There are two problems. First the expected behavior for signaling NaNs needs to be clarified. Second, whether the returned value is expected to be canonicalized (as if by llvm.canonicalize).
Currently according to the LangRef:
Follows the IEEE-754 semantics for minNum, which also