1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add a test for the duplicated-conditional situation illutrated by PR5652.

llvm-svn: 112621
This commit is contained in:
Owen Anderson 2010-08-31 18:49:12 +00:00
parent e2b5bd3a7f
commit 3ab91d56b4

View File

@ -452,3 +452,27 @@ right_ret:
ret i32 1
}
; PR5652
; CHECK: @test15
define i32 @test15(i32 %len) {
entry:
; CHECK: icmp ult i32 %len, 13
%tmp = icmp ult i32 %len, 13
br i1 %tmp, label %check, label %exit0
exit0:
ret i32 0
check:
%tmp9 = icmp ult i32 %len, 21
br i1 %tmp9, label %exit1, label %exit2
exit2:
; CHECK-NOT: ret i32 2
ret i32 2
exit1:
ret i32 1
; CHECK: }
}