~mcf/cproc

ref: 16c718729adfaf40cf22aa4efeafb0d92ef5ee3c cproc/test/bitfield-load-signed.qbe -rw-r--r-- 175 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
export
function $f() {
@start.1
@body.2
	%.1 =l mul 0, 1
	%.2 =l add $s, %.1
	%.3 =w loadw %.2
	%.4 =w shl %.3, 13
	%.5 =w sar %.4, 17
	ret
}
export data $s = align 4 { z 4 }