https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 95176, which changed state.
Bug 95176 Summary: Failure to optimize division followed by multiplication to modulo followed by subtraction https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95176 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED