[PATCH] D143074: [LangRef] improve documentation of SNaN in the default FP environment
Ralf via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 4 06:50:25 PST 2023
RalfJung added a comment.
> Floating-point math operations assume that all NaNs are quiet.
That could be read as "if you produce a signaling NaN (e.g. via a bitcast) and feed that to a math operation, that violates the assumption, and hence is UB".
I think it'd be better to explicitly say that when a math operation produces a NaN, it non-deterministically picks an arbitrary (quiet or signaling) NaN.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143074/new/
https://reviews.llvm.org/D143074
More information about the llvm-commits
mailing list