https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98251
nsz at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nsz at gcc dot gnu.org --- Comment #1 from nsz at gcc dot gnu.org --- i believe ieee-754 only specifies the sign bit of a nan after copy, negate, abs and copysign operations. iso c does not specify further requirements about the sign bit of a nan either. so i think gcc should not assume that conversions preserve the sign bit. (there may be real hw where that is not the case, independently from what libgcc is doing.)