mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
Completel forgot about unconditional branches
llvm-svn: 75961
This commit is contained in:
parent
ce2b70586e
commit
db9fb21b48
@ -271,6 +271,9 @@ let isReturn = 1, isTerminator = 1, isBarrier = 1, hasCtrlDep = 1 in {
|
||||
}
|
||||
|
||||
let isBranch = 1, isTerminator = 1 in {
|
||||
let isBarrier = 1 in
|
||||
def JMP : Pseudo<(outs), (ins brtarget:$dst), "j\t{$dst}", [(br bb:$dst)]>;
|
||||
|
||||
let Uses = [PSW] in {
|
||||
def JE : Pseudo<(outs), (ins brtarget:$dst),
|
||||
"je\t$dst",
|
||||
|
18
test/CodeGen/SystemZ/07-BrUnCond.ll
Normal file
18
test/CodeGen/SystemZ/07-BrUnCond.ll
Normal file
@ -0,0 +1,18 @@
|
||||
; RUN: llvm-as < %s | llc
|
||||
|
||||
target datalayout = "E-p:64:64:64-i1:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128"
|
||||
target triple = "s390x-linux"
|
||||
|
||||
define void @foo() noreturn nounwind {
|
||||
entry:
|
||||
tail call void @baz() nounwind
|
||||
br label %l1
|
||||
|
||||
l1: ; preds = %entry, %l1
|
||||
tail call void @bar() nounwind
|
||||
br label %l1
|
||||
}
|
||||
|
||||
declare void @bar()
|
||||
|
||||
declare void @baz()
|
Loading…
Reference in New Issue
Block a user