This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34256] mmx and movd/movq on x86_64
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2007 12:45:34 -0000
- Subject: [Bug target/34256] mmx and movd/movq on x86_64
- References: <bug-34256-5748@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from ubizjak at gmail dot com 2007-11-28 12:45 -------
Created an attachment (id=14653)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14653&action=view)
Patch to adjust mmx move instructions
It looks that mmx move instructions need some tuning. Attached patch fixes
your problems and generates (-march=core2):
foo:
.LFB4:
movq x(%rip), %mm0
paddd y(%rip), %mm0
movd %mm0, %rax
ret
Since these RA adjustments are very fragile, this patch is not appropriate for
stage3.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34256