https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109221
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With -ffast-math -mfpmath=387,sse (or -mavx512f instead of -mfpmath=387 as there is a avx512f instruction too) added, ldexp gets inlined.