mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 21:29:28 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48483 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
401 B
LLVM
20 lines
401 B
LLVM
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
|
|
|
|
define i32 @test1(i1 %C) {
|
|
entry:
|
|
br i1 %C, label %T, label %F
|
|
T: ; preds = %entry
|
|
ret i32 1
|
|
F: ; preds = %entry
|
|
ret i32 0
|
|
}
|
|
|
|
define void @test2(i1 %C) {
|
|
br i1 %C, label %T, label %F
|
|
T: ; preds = %0
|
|
ret void
|
|
F: ; preds = %0
|
|
ret void
|
|
}
|
|
|