https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103008
--- Comment #4 from Dave Love <fx at gnu dot org> --- On further consideration, perhaps this is just a Fortran issue. I thought -ffast-math should turn off all the relevant checks to allow reducing mod to the arithmetic expression, but it probably doesn't. Also, MAQAO complained about x87 instructions being generated, but I'm not sure about that either if it's just for status. Apologies if this is invalid, and correction welcome.