https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109960
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- We could have a pattern that does: `(a & CST) != 0 ? 1: (bool)a` -> `a & (CST|1) != 0` to fix this I think.
pinskia at gcc dot gnu.org via Gcc-bugs Wed, 24 May 2023 17:45:19 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109960
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- We could have a pattern that does: `(a & CST) != 0 ? 1: (bool)a` -> `a & (CST|1) != 0` to fix this I think.