1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
Chandler Carruth 2bf0dccc04 FileCheck-ize this test and make it more precise. This is in preparation
for adding other tests.

llvm-svn: 145143
2011-11-26 08:24:25 +00:00

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
}