aboutsummaryrefslogtreecommitdiff
path: root/test/conditional-compound-literal.qbe
blob: 57358e643b4dd9b471d7f3ce9e3bb99af394d8b3 (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 w $main() {
@start.1
	%.1 =l alloc4 4
	%.2 =l alloc8 8
	%.4 =l alloc4 4
@body.2
	storew 0, %.1
	%.3 =w cnew 0, 0
	jnz %.3, @cond_true.3, @cond_false.4
@cond_true.3
	jmp @cond_join.5
@cond_false.4
	%.5 =w loadw %.1
	storew %.5, %.4
@cond_join.5
	%.6 =l phi @cond_true.3 0, @cond_false.4 %.4
	storel %.6, %.2
	%.7 =l loadl %.2
	%.8 =w loadw %.7
	ret %.8
}