https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 98709, which changed state.
Bug 98709 Summary: gcc optimizes bitwise operations, but doesn't optimize logical ones https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98709 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED