https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67624
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-09-18 Ever confirmed|0 |1 --- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- Yes, the existing code looks wrong in that infinity gets converted to NaN. Your patch, however, is not right either, since it can convert some NaNs (where only the bottom 13 bits are non-zero) to infinity. I'd need to think a bit more on what the exact conversion needs to be in these cases.