https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126029
--- Comment #4 from Kael Franco <kaelfandrew at gmail dot com> ---
int g3(_Bool a)
{
return (2 >> !a) == (a + 1);
}
should optimize to return 1. Clang miss this.
kaelfandrew at gmail dot com via Gcc-bugs Wed, 01 Jul 2026 09:37:16 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126029
--- Comment #4 from Kael Franco <kaelfandrew at gmail dot com> ---
int g3(_Bool a)
{
return (2 >> !a) == (a + 1);
}
should optimize to return 1. Clang miss this.