[PATCH] D143074: [LangRef] improve documentation of SNaN in the default FP environment

Ralf via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 02:47:06 PST 2023


RalfJung added a comment.

> because, from what I understand, before IEEE 754 specified how to encode quietness for NaNs, MIPS (and PA-RISC) arbitrarily chose the opposite encoding to what IEEE 754-2008 specifies, so LLVM generating quiet NaNs following IEEE 754-2008 produces NaNs that are actually signalling NaNs for old MIPS. MIPS later added a mode bit allowing swapping its interpretation of signalling/quiet NaNs to fall in line with the IEEE 754-2008 spec -- new MIPS has that set to IEEE 754-2008 mode.

Sorry, I should have clarified, I was asking specifically about this part:
"There's just no way it's okay to spuriously introduce sNaNs when the original program didn't contain sNaNs in the first place."


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143074/new/

https://reviews.llvm.org/D143074



More information about the llvm-commits mailing list