~mcf/cproc

ref: 34ae0d48e9669687003c26f94e07fa00d12dd41f cproc/test/bitfield-load-signed.qbe -rw-r--r-- 175 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
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 }