aboutsummaryrefslogtreecommitdiff
path: root/test/bitfield-compound-assign.qbe
blob: 4d49a6b035f083230f5a3bfc5e9d7c5c75a1db6d (plain)
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 }