aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-21 08:18:57 +0000
committerChris Lattner <sabre@nondot.org>2010-11-21 08:18:57 +0000
commitcbf5d74e6a99b6e38c9c05e08b6319ed0ce49650 (patch)
treeb8fffa8932147f530c2a356d25669e60d6d95dd9 /lib/Target/X86
parent604f6fe553eb430c6d991f72baa3633842759b49 (diff)
downloadexternal_llvm-cbf5d74e6a99b6e38c9c05e08b6319ed0ce49650.zip
external_llvm-cbf5d74e6a99b6e38c9c05e08b6319ed0ce49650.tar.gz
external_llvm-cbf5d74e6a99b6e38c9c05e08b6319ed0ce49650.tar.bz2
implement PR8524, apparently mainline gas accepts movq as an alias for movd
when transfering between i64 gprs and mmx regs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/X86InstrInfo.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 0a60eb7..10e9e9a 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/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)>;