~mcf/cproc

ref: 34ae0d48e9669687003c26f94e07fa00d12dd41f cproc/test/kr-function-argument-promotion.qbe -rw-r--r-- 226 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 w $f(w %.1) {
@start.1
	%.2 =w extub %.1
	%.3 =l alloc4 1
	storeb %.2, %.3
@body.2
	%.4 =w loadub %.3
	%.5 =w extub %.4
	ret %.5
}
export
function w $main() {
@start.3
@body.4
	%.1 =w call $f(w 256)
	ret %.1
}