mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
add a testcase, which we already handle
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17737 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -33,7 +33,7 @@ Exit:
|
|||||||
ret int %B
|
ret int %B
|
||||||
}
|
}
|
||||||
|
|
||||||
int %test3(bool %b) {
|
int %test4(bool %b) {
|
||||||
BB0: ret int 7 ; Loop is unreachable
|
BB0: ret int 7 ; Loop is unreachable
|
||||||
|
|
||||||
Loop:
|
Loop:
|
||||||
@@ -43,3 +43,13 @@ L2:
|
|||||||
br label %Loop
|
br label %Loop
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int %test5(int %a, bool %b) {
|
||||||
|
BB0: br label %Loop
|
||||||
|
|
||||||
|
Loop:
|
||||||
|
%B = phi int [%A, %BB0], [undef, %Loop] ; PHI has same value always.
|
||||||
|
br bool %b, label %Loop, label %Exit
|
||||||
|
Exit:
|
||||||
|
ret int %B
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user