aboutsummaryrefslogtreecommitdiff
path: root/test/for-loop.qbe
blob: 588f48810bb43d2d10b87a1a944972fc9a9323c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export
function $f() {
@start.1
	%.1 =l alloc4 4
@body.2
	storew 0, %.1
@for_cond.3
	%.2 =w loadsw %.1
	%.3 =w csltw %.2, 10
	%.4 =w cnew %.3, 0
	jnz %.4, @for_body.4, @for_join.6
@for_body.4
	%.5 =w loadsw %.1
	call $g(w %.5)
@for_cont.5
	%.6 =w loadsw %.1
	%.7 =w add %.6, 1
	storew %.7, %.1
	jmp @for_cond.3
@for_join.6
	ret
}