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:
parent
e2b5bd3a7f
commit
3ab91d56b4
@ -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: }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user