https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85301
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note, r142464 still doesn't warn, r142514 does, probably r142484 enabled the (premature) BIT_FIELD_REF comparison optimization in fold-const.c.