~mcf/cproc

ref: 34ae0d48e9669687003c26f94e07fa00d12dd41f cproc/test/struct-copy.qbe -rw-r--r-- 278 bytes
34ae0d48Michael Forney Add tests for char/wchar_t signedness 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 }