~mcf/cproc

ref: 34ae0d48e9669687003c26f94e07fa00d12dd41f cproc/test/bitfield-short.qbe -rw-r--r-- 230 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
export data $s = align 2 { b 64, z 1 }
export
function w $main() {
@start.1
@body.2
	%.1 =l mul 0, 1
	%.2 =l add $s, %.1
	%.3 =w loadsh %.2
	%.4 =w shl %.3, 25
	%.5 =w sar %.4, 25
	%.6 =w extsh %.5
	%.7 =w csgtw %.6, 0
	ret %.7
}