https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118572
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu.org --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So we have a&0x80 !=0 (or rather a&0x80 == 0x80) and a&0xc0 == 0x80 So it optimize to a&xc0 == 0x80.