[llvm-commits] [llvm] r74156 - /llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td

Evan Cheng evan.cheng at apple.com
Wed Jun 24 18:21:30 PDT 2009


Author: evancheng
Date: Wed Jun 24 20:21:30 2009
New Revision: 74156

URL: http://llvm.org/viewvc/llvm-project?rev=74156&view=rev
Log:
Add thumb2 add sp.

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td

Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td?rev=74156&r1=74155&r2=74156&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrThumb2.td Wed Jun 24 20:21:30 2009
@@ -341,6 +341,21 @@
                                          "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.
 //





More information about the llvm-commits mailing list