This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/20781] 64 bit shift by non-constant implemented as libcall on PPC32
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Apr 2005 06:46:19 -0000
- Subject: [Bug target/20781] 64 bit shift by non-constant implemented as libcall on PPC32
- References: <20050406023153.20781.dberlin@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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