This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/32951] missed memcpy -> movdqa optimization.



------- Comment #4 from pluto at agmk dot net  2007-08-06 12:56 -------
(In reply to comment #3)
> Subject: Re:  missed memcpy -> movdqa optimization.
> 
> On 6 Aug 2007 12:42:18 -0000, pluto at agmk dot net
> <gcc-bugzilla@gcc.gnu.org> wrote:
> > moreover i'm wondering why gcc uses movdqa for unaligned loads?
> 
> Because __m128i is assumed to be aligned.

so, as far i can see currently there's no way to generate movdqu load
with <emmintrin.h> and __builtin_memcpy( &__m128i, unaligned_ptr, 16 )
and i must write a short inline assembly for this purpose.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32951


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]