https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119007
--- Comment #1 from Jeffrey A. Law <law at gcc dot gnu.org> --- I think when we discussed his several weeks ago the conclusion was this was a problem in the intrinsics space. Essentially the intrinsics can modify FRM and when they do they probably need to set -fno-rounding-math for at least the whole function in question. That way the generic optimizers won't try to simplify FP ops assuming we're still in the default rounding mode.