https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112614
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- The sign of a NaN isn't specified for conversions, only for a few operations such as absolute value, negation, copysign.