From: Evan Cheng Date: Thu, 25 Jun 2009 01:21:30 +0000 (+0000) Subject: Add thumb2 add sp. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b6c29d55123f6b8c3f9e4d56e4be653a1fd2a472;p=oota-llvm.git Add thumb2 add sp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74156 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index 99ebaf0d39c..1ee6ebd925e 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -341,6 +341,21 @@ def t2LEApcrelJT : T2I<(outs GPR:$dst), "add$p $dst, pc, #PCRELV${:uid}")), []>; +// ADD rd, sp, #so_imm +def t2ADDrSPi : T2I<(outs GPR:$dst), (ins GPR:$sp, t2_so_imm:$imm), + "add $dst, $sp, $imm", + []>; + +// ADD rd, sp, #imm12 +def t2ADDrSPi12 : T2I<(outs GPR:$dst), (ins GPR:$sp, i32imm:$imm), + "addw $dst, $sp, $imm", + []>; + +def t2ADDrSPs : T2I<(outs GPR:$dst), (ins GPR:$sp, t2_so_reg:$rhs), + "addw $dst, $sp, $rhs", + []>; + + //===----------------------------------------------------------------------===// // Arithmetic Instructions. //