summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf86cd37befabd89b5f427542cd99e02d3a67cdc3 (patch)
treee46897dc7b852251c5d4305232004a9ef7426afc /llvm/lib/Target/ARM/ARMInstrThumb.td
parentd78cfd57eb297ad74a31c9f5913f6957f1c22ce6 (diff)
downloadbcm5719-llvm-f86cd37befabd89b5f427542cd99e02d3a67cdc3.tar.gz
bcm5719-llvm-f86cd37befabd89b5f427542cd99e02d3a67cdc3.zip
Thumb assembly parsing and encoding for MOV.
llvm-svn: 138076
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrThumb.td')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td
index b19cccbd992..5825f9bedef 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb.td
+++ b/llvm/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.
OpenPOWER on IntegriCloud