aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine/test-loop.ll
blob: 059de489cb0a07e0f3d071829a55fe8fe138f6d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-as -f %s -o %t.bc
; RUN: lli %t.bc > /dev/null



int %main() {
	br label %Loop
Loop:
	%I = phi int [0, %0], [%i2, %Loop]
	%i2 = add int %I, 1
	%C = seteq int %i2, 10
	br bool %C, label %Out, label %Loop
Out:
	ret int 0
}