https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105384
--- Comment #7 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- Using host libm routines is a bad idea, that would make the generated code depend on the host libm and processor. Having a cut-off to avoid constant folding these functions for n >= 128 might make sense (that cut-off is chosen as the one beyond which the ISO 24747 versions of the functions, and the versions in the standard C++ library, have implementation-defined behavior).