[Bug middle-end/64309] if (1 & (1 << n)) not simplified to if (n == 0)

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 15 11:45:00 GMT 2014


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Surely can we transform if ((3 << 0) & (3 << n)) -> if (n == 0)?  For n == 1
that is true as well.



More information about the Gcc-bugs mailing list