Add direct branch

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2009-05-03 13:12:58 +00:00
parent 0af5af823b
commit 824d8ddae8

View 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),
let Uses = [SRW] in
def JCC : Pseudo<(outs), (ins brtarget:$dst, cc:$cc),
"j$cc $dst",
[(MSP430brcond bb:$dst, imm:$cc, SRW)]>;
} // Uses = [SRW]
} // isBranch, isTerminator
//===----------------------------------------------------------------------===//
// Call Instructions...