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.

Reply via email to