https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 95187, which changed state.
Bug 95187 Summary: Failure to optimize bool check into consecutive literals https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95187 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED