~mcf/cproc

ref: 34ae0d48e9669687003c26f94e07fa00d12dd41f cproc/test/bitfield-compound-assign.qbe -rw-r--r-- 376 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
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 }