mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Add a test for the duplicated-conditional situation illutrated by PR5652.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112621 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c1bdac66ff
commit
b95df124b2
@ -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