summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMInstrThumb.td
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-19 20:46:54 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-19 20:46:54 +0000
commit4ec6e888ec6d12b5255afd685b05c8fee1f7fc73 (patch)
tree8df54f2bf6caecf948d86f4986c7f6eafed1ff72 /lib/Target/ARM/ARMInstrThumb.td
parentc68e927488819efd671207786baadce6cae7266c (diff)
downloadllvm-4ec6e888ec6d12b5255afd685b05c8fee1f7fc73.tar.gz
llvm-4ec6e888ec6d12b5255afd685b05c8fee1f7fc73.tar.bz2
llvm-4ec6e888ec6d12b5255afd685b05c8fee1f7fc73.tar.xz
Thumb assembly parsing and encoding for MOV.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrThumb.td')
-rw-r--r--lib/Target/ARM/ARMInstrThumb.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td
index b19cccbd99..5825f9bede 100644
--- a/lib/Target/ARM/ARMInstrThumb.td
+++ b/lib/Target/ARM/ARMInstrThumb.td
@@ -1014,6 +1014,11 @@ def tMOVi8 : T1sI<(outs tGPR:$Rd), (ins imm0_255:$imm8), IIC_iMOVi,
let Inst{10-8} = Rd;
let Inst{7-0} = imm8;
}
+// Because we have an explicit tMOVSr below, we need an alias to handle
+// the immediate "movs" form here. Blech.
+def : InstAlias <"movs $Rdn, $imm",
+ (tMOVi8 tGPR:$Rdn, CPSR, imm0_255:$imm, 14, 0)>,
+ Requires<[IsThumb]>;
// A7-73: MOV(2) - mov setting flag.