https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 31096, which changed state.
Bug 31096 Summary: a*C == b*C where C is a constant is not optimized to a == b https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31096 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED