This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17619] Non-optimal code for -mfpmath=387,sse
- 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: 1 Dec 2004 14:27:13 -0000
- Subject: [Bug target/17619] Non-optimal code for -mfpmath=387,sse
- References: <20040922191917.17619.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-01 14:27 -------
Actually the most optimial code would be:
_Z6foobarv:
.LFB2:
pushl %ebp
.LCFI0:
movl %esp, %ebp
.LCFI1:
subl $24, %esp
.LCFI2:
movaps a, %xmm0
mulps b, %xmm0
movaps %xmm0, -24(%ebp)
fldz
fadds -24(%ebp)
fadds -20(%ebp)
fadds -16(%ebp)
fadds -12(%ebp)
leave
ret
But to do that we need the tree vectorizer to become better and also split the loop into two.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17619