This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31249] pseudo-optimzation with sincos/cexpi
- 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: 18 Mar 2007 09:49:55 -0000
- Subject: [Bug middle-end/31249] pseudo-optimzation with sincos/cexpi
- References: <bug-31249-12313@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-03-18 09:49 -------
The only reason why cexp is slow on PPC darwin is because the ABI is stupid.
Complex float arguments are passed via the GPR and returned also the same way
instead of via the FPRs. So you will get a transfer of registers. This is
also true of PPC64 darwin, why they made the same mistake twice I have no idea,
guess they did not expect people to use complex that much.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31249