Add direct branch
authorAnton Korobeynikov <asl@math.spbu.ru>
Sun, 3 May 2009 13:12:58 +0000 (13:12 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sun, 3 May 2009 13:12:58 +0000 (13:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70746 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/MSP430InstrInfo.td

index 26523289129bac60e28b5905e276afce461db238..2615869dd9f3646d14722c472dc74b279bd37ad8 100644 (file)
@@ -126,12 +126,20 @@ let isReturn = 1, isTerminator = 1 in {
   def RET : Pseudo<(outs), (ins), "ret", [(MSP430retflag)]>;
 }
 
+let isBranch = 1, isTerminator = 1 in {
+
+// Direct branch
+let isBarrier = 1 in
+  def JMP : Pseudo<(outs), (ins brtarget:$dst),
+                   "jmp\t$dst",
+                   [(br bb:$dst)]>;
+
 // Conditional branches
-let isBranch = 1, isTerminator = 1, Uses = [SRW] in {
-def JCC : Pseudo<(outs), (ins brtarget:$dst, cc:$cc),
-                          "j$cc $dst",
-                          [(MSP430brcond bb:$dst, imm:$cc, SRW)]>;
-} // Uses = [SRW]
+let Uses = [SRW] in
+  def JCC : Pseudo<(outs), (ins brtarget:$dst, cc:$cc),
+                            "j$cc $dst",
+                            [(MSP430brcond bb:$dst, imm:$cc, SRW)]>;
+} // isBranch, isTerminator
 
 //===----------------------------------------------------------------------===//
 //  Call Instructions...