https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 94877, which changed state.
Bug 94877 Summary: Failure to simplify ~(x + 1) to -2 - x https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94877 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED