https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111431
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note this is an extension of the pattern: /* X & !X -> 0. */ (simplify (bit_and:c @0 (logical_inverted_value @0)) Which was moved to match via r5-4683-g5609420fbab5ca .