diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-21 08:18:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-21 08:18:57 +0000 |
commit | b4cd1819fa1230a7cd2a41bbf36151ee45294ec5 (patch) | |
tree | c2511582bbf0ba5ad92aa16f6c3b8b51b70c034a /llvm/lib/Target/X86 | |
parent | 595722965905f6c4e8fe2109e005359844964f24 (diff) | |
download | bcm5719-llvm-b4cd1819fa1230a7cd2a41bbf36151ee45294ec5.tar.gz bcm5719-llvm-b4cd1819fa1230a7cd2a41bbf36151ee45294ec5.zip |
implement PR8524, apparently mainline gas accepts movq as an alias for movd
when transfering between i64 gprs and mmx regs.
llvm-svn: 119931
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index 0a60eb7b917..10e9e9a88e4 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -1497,6 +1497,10 @@ def : InstAlias<"mov $seg, $mem", (MOV32ms i32mem:$mem, SEGMENT_REG:$seg)>; // Match 'movq <largeimm>, <reg>' as an alias for movabsq. def : InstAlias<"movq $imm, $reg", (MOV64ri GR64:$reg, i64imm:$imm)>; +// Match 'movq GR64, MMX' as an alias for movd. +def : InstAlias<"movq $src, $dst", (MMX_MOVD64to64rr VR64:$dst, GR64:$src)>; +def : InstAlias<"movq $src, $dst", (MMX_MOVD64from64rr GR64:$dst, VR64:$src)>; + // movsd with no operands (as opposed to the SSE scalar move of a double) is an // alias for movsl. (as in rep; movsd) def : InstAlias<"movsd", (MOVSD)>; |