mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
5761c30a8d
for adding other tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145143 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
332 B
LLVM
20 lines
332 B
LLVM
; RUN: opt < %s -simplifycfg -S | FileCheck %s
|
|
|
|
define void @test(i32* %P, i32* %Q, i1 %A, i1 %B) {
|
|
; CHECK: test
|
|
; CHECK: br i1
|
|
; CHECK-NOT: br i1
|
|
; CHECK: ret
|
|
; CHECK: ret
|
|
|
|
entry:
|
|
br i1 %A, label %a, label %b
|
|
a:
|
|
br i1 %B, label %b, label %c
|
|
b:
|
|
store i32 123, i32* %P
|
|
ret void
|
|
c:
|
|
ret void
|
|
}
|