~mcf/cproc

ref: 16c718729adfaf40cf22aa4efeafb0d92ef5ee3c cproc/test/struct-copy.qbe -rw-r--r-- 278 bytes
16c71872Michael Forney Prepare for supporting architecture-specific va_list type 8 months ago
                                                                                
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 }