mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
30 lines
708 B
LLVM
30 lines
708 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -cee
|
|
|
|
implementation
|
|
|
|
declare void %foo(int)
|
|
|
|
void %test(int %A, bool %C) {
|
|
br bool %C, label %bb0, label %bb1
|
|
bb0:
|
|
br label %bb3
|
|
Unreachable:
|
|
br label %bb2
|
|
bb1: ;[#uses=0]
|
|
%cond212 = setgt int %A, 9 ; <bool> [#uses=1]
|
|
br bool %cond212, label %bb2, label %bb7
|
|
|
|
bb2: ;[#uses=1]
|
|
%cond = setgt int %A, 7
|
|
br bool %cond, label %bb3, label %bb7
|
|
|
|
bb3: ;[#uses=1]
|
|
%X = phi int [ 0, %bb0], [ 12, %bb2]
|
|
call void %foo( int %X )
|
|
br label %bb7
|
|
|
|
bb7: ;[#uses=2]
|
|
ret void
|
|
}
|
|
|