https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108922
--- Comment #4 from Alexander Monakov <amonakov at gcc dot gnu.org> --- Plus, Glibc does use fprem/fprem1 for fmodl/remainderl on x86_64, as well as for {fmod,remainder,remquo}{,f,l} on i386 without any branches for corner cases. So in practice CPUs apparently implement the expected behavior even though the manual doesn't promise so. The ieee_2.f90 testcase attempts to change rounding mode. It 2014 it probably just was "miscompiled".