This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32686] Code to convert double to _Complex double for arguments passing is not good (extra load)
- 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: 9 Jul 2007 03:33:37 -0000
- Subject: [Bug middle-end/32686] Code to convert double to _Complex double for arguments passing is not good (extra load)
- References: <bug-32686-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-07-09 03:33 -------
powerpc64-darwin is just as bad, we get:
mflr r0
std r31,-8(r1)
stfd f1,-32(r1)
bcl 20,31,"L00000000001$pb"
"L00000000001$pb":
mflr r31
addis r2,r31,ha16(LC0-"L00000000001$pb")
mtlr r0
ld r4,lo16(LC0-"L00000000001$pb")(r2)
ld r3,-32(r1)
ld r31,-8(r1)
b L_f$stub
When we should get:
stfd f1,-8(r1)
li r4,0
ld r3,-8(r1)
b L_f$stub
With a few nops through in there so we don't reject the distpatch group.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32686