https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57492
--- Comment #5 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- The example from comment#2 should require -funsafe-math-optimizations (it's not correct if the pow call overflowed / underflowed but the ldexp call doesn't).