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/38320] missed movd opcode (32bits mm -> r/m32).



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


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