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