[Bug tree-optimization/58073] Suboptimal optimisation of ((x & 0x70) == 0x00 && (x & 0x70) == 0x10 && (x & 0x70) == 0x20) on x86_64

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 27 07:05:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58073

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
((x & 0x70) == 0x00 && (x & 0x70) == 0x10 && (x & 0x70) == 0x20)

Should be false always.  I suspect you had meant || rather than &&.


More information about the Gcc-bugs mailing list