------- 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