Add direct branch

llvm-svn: 70746
This commit is contained in:
Anton Korobeynikov 2009-05-03 13:12:58 +00:00
parent 24bfb51416
commit aa43d0b182
1 changed files with 13 additions and 5 deletions

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),
"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...