This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15820] GCC emits MOVAPS to load unaligned data in case when -O2 is invoked
- From: "dimfair at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2004 14:26:26 -0000
- Subject: [Bug c++/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 dimfair at yahoo dot com 2004-06-04 14:26 -------
(In reply to comment #2)
> To be more explicit: if you pass this function an unaligned pointer,
> how can you expect the compiler to do something about it?
>
> W.
test function is a (specially) simplified inversion of 6x6 matrix function
which get src aligned parameter always.
I'm sure this is a compiler's bug, because gcc uses MOVAPS for loading of __m64
parameter of _mm_loadh_pi which _can be unaligned_ according to Intel's specs
(BTW, I found this bug when I ported healthy program from Intel's compiler to
GCC).
NOTE: test function is meaningless (but correct!) because I tried to make the
shortest testcase (try to comment ANY line and bug disappeared).
Dmitry (it's my name :)) )
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15820