This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15820] GCC emits MOVAPS to load unaligned data in case when -O2 is invoked
- 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: 4 Jun 2004 14:37:45 -0000
- Subject: [Bug target/15820] GCC emits MOVAPS to load unaligned data in case when -O2 is invoked
- References: <20040604130940.15820.dimfair@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-04 14:37 -------
Fixed on the mainline:
_Z15Invert_6x6_fastPf:
.LFB1894:
pushl %ebp
.LCFI5:
xorps %xmm0, %xmm0
movl %esp, %ebp
.LCFI6:
subl $104, %esp
.LCFI7:
movaps %xmm0, %xmm1
movl 8(%ebp), %eax
movlps 44(%eax), %xmm1
movss (%eax), %xmm2
movhps 88(%eax), %xmm1
movaps %xmm1, %xmm3
movlps 64(%eax), %xmm1
movhps 80(%eax), %xmm1
shufps $136, %xmm0, %xmm3
movaps %xmm1, %xmm0
mulps %xmm1, %xmm3
mulss %xmm1, %xmm0
mulss %xmm0, %xmm2
movaps %xmm1, %xmm0
addss %xmm1, %xmm0
subss %xmm2, %xmm0
movss %xmm0, (%eax)
movmskps %xmm3, %eax
testl %eax, %eax
leave
sete %al
movzbl %al, %eax
ret
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|c++ |target
Keywords| |wrong-code
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15820