aboutsummaryrefslogtreecommitdiff
path: root/test/compound-assignment.qbe
blob: 35e71a549960ae3bab657baa1082b39826e0d75f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export
function $f() {
@start.1
	%.1 =l alloc4 4
	%.3 =l alloc8 8
@body.2
	%.2 =l add %.1, 0
	storew 0, %.2
	%.4 =l add %.3, 0
	storel %.1, %.4
	%.5 =l loadl %.3
	%.6 =l add %.5, 4
	storel %.6, %.3
	%.7 =w loadsw %.5
	%.8 =w add %.7, 1
	storew %.8, %.5
	ret
}