[Bug middle-end/21137] Convert (a >> 2) & 1 != 0 into a & 4 != 0
phython at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Aug 14 21:56:00 GMT 2005
------- Additional Comments From phython at gcc dot gnu dot org 2005-08-14 21:56 -------
Actually, doing (a >> c1) & 2**c2 -> (a & (1<<c1+c2)) >> c1 looks worse, but
can be transformed into (a & (1<<c1+c2)) CMP c3 << c1. However, I haven't
figure out the details of the second transformation. There is a bug about it
though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21137
More information about the Gcc-bugs
mailing list