This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/38320] missed movd opcode (32bits mm -> r/m32).
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2008 10:23:49 -0000
- Subject: [Bug target/38320] missed movd opcode (32bits mm -> r/m32).
- References: <bug-38320-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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