aboutsummaryrefslogtreecommitdiff
path: root/test/bitfield-compound-assign.qbe
blob: dc57e79b6878d963324c5d1e5c1b2a0ab5ec3be4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export
function $f() {
@start.1
@body.2
	%.1 =l add $s, 0
	%.2 =w loadw %.1
	%.3 =w shl %.2, 19
	%.4 =w sar %.3, 23
	%.5 =w add %.4, 3
	%.6 =w shl %.5, 4
	%.7 =w shl %.6, 19
	%.8 =w sar %.7, 23
	%.9 =w and %.6, 8176
	%.10 =w loadw %.1
	%.11 =w and %.10, 18446744073709543439
	%.12 =w or %.9, %.11
	storew %.12, %.1
	ret
}
export data $s = align 4 { z 4 }