https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101591
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > Mine, something like: > (for cmp (eq ne) > (simplify > (cmp:c (bit_ior @0 INTEGER_CST@1) @0) > (cmp:c (bit_and @1 (bit_not @0)) { build_zero_cst (TREE_TYPE(@0)); }))) > > Note maybe a power of 2 integer constant might be better because is just a shift and an and in the end.