[clang] [llvm] Option to control signaling NaN support (PR #193055)

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 24 09:46:32 PDT 2026


================
@@ -1871,6 +1874,33 @@ for more details.
    - The option ``-fno-rounding-math`` allows the compiler to assume that the rounding mode is set to ``FE_TONEAREST``.  This is the default.
    - The option ``-frounding-math`` forces the compiler to honor the dynamically-set rounding mode.  This prevents optimizations which might affect results if the rounding mode changes or is different from the default; for example, it prevents floating-point operations from being reordered across most calls and prevents constant-folding when the result is not exactly representable.
 
+.. option:: -f[no-]signaling-nans
+
+   Informs the compiler whether signaling NaNs behave according to IEEE 754.
+
+   IEEE 754 defines signaling NaNs (SNaNs) as a subset of Not-a-Numbers (NaNs),
----------------
spavloff wrote:

Fixed.

https://github.com/llvm/llvm-project/pull/193055


More information about the cfe-commits mailing list