~mcf/cproc

ref: 16c718729adfaf40cf22aa4efeafb0d92ef5ee3c cproc/test/kr-function-argument-promotion.qbe -rw-r--r-- 226 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 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
}