1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Regression/ExecutionEngine/2003-01-04-LoopTest.ll
Tanya Lattner bb2cd15df7 Adding RUN lines.
llvm-svn: 17536
2004-11-06 23:32:43 +00:00

26 lines
520 B
LLVM

; RUN: llvm-as -f %s -o %t.bc
; 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
}