~mcf/cproc

ref: 34ae0d48e9669687003c26f94e07fa00d12dd41f cproc/test/bitfield-integer-promotion.qbe -rw-r--r-- 224 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
function w $main() {
@start.1
@body.2
	%.1 =w sub 0, 1
	%.2 =l mul 0, 1
	%.3 =l add $s, %.2
	%.4 =w loadw %.3
	%.5 =w shl %.4, 30
	%.6 =w shr %.5, 30
	%.7 =w csgtw %.1, %.6
	ret %.7
}
export data $s = align 4 { z 4 }