This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/15350] [tree-ssa] Convert if ((1 << a) & 1) into if (a == 0).


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-08 19:08 -------
Hmm, we do optimize this with ashiftrt but not with ashift.
We also fold ((1 << a) & 1) != 0  into ((1 >> a & 1) != 0) which gets optimized on the RTL level.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15350


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]