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/34256] mmx and movd/movq on x86_64



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


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