https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114140
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceware.org/bugz | |illa/show_bug.cgi?id=26045 --- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Specifically https://sourceware.org/bugzilla/show_bug.cgi?id=26045#c4 : (The ISO C convention that "NaN" means "quiet NaN" by default may not be the most helpful to readers. We do refer to the fmax handling of signaling NaNs in the documentation of FE_SNANS_ALWAYS_SIGNAL. So basically libquadmath is correct for signaling NaNs and maybe the constant folding of GCC is incorrect though I am not 100% sure if -fsignaling-nans should not make a difference or not.