https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95817
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Severity|normal |enhancement Last reconfirmed| |2021-12-16 Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Well canonicalization reasons is still good as we don't optimize: bool f(int a) { return (!(a >> 7)) == !((unsigned)a > 127); } To just return 1;