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