aboutsummaryrefslogtreecommitdiff
path: root/test/while-condition.qbe
blob: 23b3b15e8a7baacd244edb6043995bf3a6c403ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export
function w $main() {
@start.1
	%.1 =l alloc8 8
@body.2
	%.2 =l add %.1, 0
	%.3 =d swtof 1
	stored %.3, %.2
@while_cond.3
	%.4 =d loadd %.1
	%.5 =w cned %.4, d_0
	jnz %.5, @while_body.4, @while_join.5
@while_body.4
	%.6 =d loadd %.1
	%.7 =d swtof 2
	%.8 =d div %.6, %.7
	stored %.8, %.1
	jmp @while_cond.3
@while_join.5
	%.9 =d loadd %.1
	%.10 =w dtosi %.9
	ret %.10
}