aboutsummaryrefslogtreecommitdiff
path: root/test/struct-copy.qbe
blob: 0e0dce3bf227de39ef1eaae047442482cffc64f1 (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 12
@body.2
	%.2 =l loadw $x
	storew %.2, %.1
	%.3 =l add $x, 4
	%.4 =l add %.1, 4
	%.5 =l loadw %.3
	storew %.5, %.4
	%.6 =l add %.3, 4
	%.7 =l add %.4, 4
	%.8 =l loadw %.6
	storew %.8, %.7
	ret
}
export data $x = align 4 { z 12 }