This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/36992] Very stange code for _mm_move_epi64
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2008 12:55:56 -0000
- Subject: [Bug target/36992] Very stange code for _mm_move_epi64
- References: <bug-36992-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from hjl dot tools at gmail dot com 2008-08-01 12:55 -------
(In reply to comment #3)
> Btw, 4.3 generates
>
> test:
> .LFB518:
> movhps .LC0(%rip), %xmm0
> ret
>
> Likewise does gcc-4.4 (SUSE Linux) 4.4.0 20080611. And current trunk.
It should be
movq %xmm0, %xmm0
with optimization.
>
> So ... why are you exactly complaining about the code generated for -O0 again?
>
It should use "movq". There is no need to use MMX moves, like
"movq %mm0, -40(%rbp)".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36992