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 target/20781] 64 bit shift by non-constant implemented as libcall on PPC32


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-06 06:46 -------
Hmm on powerpc-darwin on the mainline I get:
_foo:
        addic. r11,r5,-32
        subfic r2,r5,31
        srwi r0,r4,1
        srw r0,r0,r2
        blt- cr0,L2
        slw r9,r4,r11
        li r10,0
        mr r3,r9
        mr r4,r10
        blr
L2:
        slw r9,r3,r5
        slw r10,r4,r5
        or r9,r0,r9
        mr r4,r10
        mr r3,r9
        blr

Which is still bad as we have extra moves.

-- 


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


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