This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20610] Real by complex multiplications perform unnecessary operations
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2005 00:26:04 -0000
- Subject: [Bug middle-end/20610] Real by complex multiplications perform unnecessary operations
- References: <20050323205957.20610.fredrik.huss@home.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2005-03-24 00:26 -------
For concreteness, this is what I get (with 4.0.0 20050321) if I add
-ffast-math to your switches, seems not so bad, first blush:
_Z1fv:
.LFB1939:
pushl %ebp
.LCFI0:
movl %esp, %ebp
.LCFI1:
movsd c, %xmm0
movsd b, %xmm1
mulsd %xmm0, %xmm1
mulsd b+8, %xmm0
movsd %xmm0, a+8
movsd %xmm1, a
popl %ebp
ret
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20610