diff options
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb2.td | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index 99ebaf0d39..1ee6ebd925 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. // |