~mcf/cproc

ref: 16c718729adfaf40cf22aa4efeafb0d92ef5ee3c cproc/test/bitfield-compound-assign.qbe -rw-r--r-- 376 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
15
16
17
18
19
20
21
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, 19
	%.5 =w sar %.4, 23
	%.6 =w add %.5, 3
	%.7 =w shl %.6, 4
	%.8 =w shl %.7, 19
	%.9 =w sar %.8, 23
	%.10 =w and %.7, 8176
	%.11 =w loadw %.2
	%.12 =w and %.11, 18446744073709543439
	%.13 =w or %.10, %.12
	storew %.13, %.2
	ret
}
export data $s = align 4 { z 4 }