https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78851
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Note that absence of flags such as -ffast-math only libstdc++ knows whether the standard allows pow(, int) to be implemented with more than a single rounding. I don't think that the middle-end converts pow(, int-valued) to powi anywhere as generally the result can be off too far (maybe we could for some known special values).