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 optimization/14792] [tree-ssa] cast elimination opportunity involving an AND


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-31 05:40 -------
On PPC here is why this code is not optimial:
_foo:
        lbz r4,0(r3)
        extsb r0,r4   <--- extra extends byte
        rlwinm r2,r0,0,31,31  <-- as this is just an and 1 (trust me)
        cmpwi cr7,r2,0
        beqlr- cr7
        bnelr- cr7
        b _link_error

-- 


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


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