~mcf/cproc

ref: 16c718729adfaf40cf22aa4efeafb0d92ef5ee3c cproc/test/bitfield-integer-promotion.qbe -rw-r--r-- 224 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
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 }