mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 04:39:51 +00:00
81daddbf0d
These tests need to be upgraded in preparation for the SETCC patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32668 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
537 B
LLVM
26 lines
537 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as -o %t.bc -f
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
implementation
|
|
|
|
int %main() {
|
|
call int %mylog(int 4)
|
|
ret int 0
|
|
}
|
|
|
|
internal int %mylog(int %num) {
|
|
bb0: ; No predecessors!
|
|
br label %bb2
|
|
|
|
bb2:
|
|
%reg112 = phi int [ 10, %bb2 ], [ 1, %bb0 ]
|
|
%cann-indvar = phi int [ %cann-indvar, %bb2 ], [0, %bb0]
|
|
%reg114 = add int %reg112, 1
|
|
%cond222 = setlt int %reg114, %num
|
|
br bool %cond222, label %bb2, label %bb3
|
|
|
|
bb3: ; preds = %bb2, %bb0
|
|
ret int %reg114
|
|
}
|
|
|