------- Comment #2 from pluto at agmk dot net  2008-11-30 10:23 -------
(In reply to comment #1)
> You need -mtune=core to generate "movd %xmm0, %rax". Gcc 4.4 works.

is movd faster only on core2 architecture?
and what about 32-bits?

$ /opt/gcc44/bin/gcc movd.c -O2 -S -march=core2 -m32

foo:    pushl   %ebp
        movl    %esp, %ebp
        subl    $16, %esp
        movq    %mm0, -16(%ebp)        <===? movd mm0, eax
        movl    -16(%ebp), %eax        <===/
        leave
        ret


-- 


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

Reply via email to