mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
0af5af823b
commit
824d8ddae8
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user