summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMInstrThumb.td
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-19 18:55:51 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-19 18:55:51 +0000
commit38466309d5c8ce408f05567fa47aeaa3b5826080 (patch)
treeb5eec344271192adc55a51116048337462e816d7 /lib/Target/ARM/ARMInstrThumb.td
parent48ff5ffe9e2a90f853ce3645b1b97ea7885eccf1 (diff)
downloadllvm-38466309d5c8ce408f05567fa47aeaa3b5826080.tar.gz
llvm-38466309d5c8ce408f05567fa47aeaa3b5826080.tar.bz2
llvm-38466309d5c8ce408f05567fa47aeaa3b5826080.tar.xz
Thumb assembly parsing and encoding for LDRH.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrThumb.td')
-rw-r--r--lib/Target/ARM/ARMInstrThumb.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td
index 35a745aa78..edc4660034 100644
--- a/lib/Target/ARM/ARMInstrThumb.td
+++ b/lib/Target/ARM/ARMInstrThumb.td
@@ -169,11 +169,13 @@ def t_addrmode_is4 : Operand<i32>,
// t_addrmode_is2 := reg + imm5 * 2
//
+def t_addrmode_is2_asm_operand : AsmOperandClass { let Name = "MemThumbRIs2"; }
def t_addrmode_is2 : Operand<i32>,
ComplexPattern<i32, 2, "SelectThumbAddrModeImm5S2", []> {
let EncoderMethod = "getAddrModeISOpValue";
let DecoderMethod = "DecodeThumbAddrModeIS";
let PrintMethod = "printThumbAddrModeImm5S2Operand";
+ let ParserMatchClass = t_addrmode_is2_asm_operand;
let MIOperandInfo = (ops tGPR:$base, i32imm:$offsimm);
}