https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102245

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a testcase which will hit the warning on all targets and not just ILP32
specific ones:
int
foo (_Bool x)
{
  int v = 0;
  return (v & ~1u) | (1u & (x << 0));
}

Reply via email to