aboutsummaryrefslogtreecommitdiff
path: root/tests/float-to-uint64.qbe
blob: 3c3aa01944613fff29a430084a3a38990217070e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export
function l $f() {
@start.1
@body.2
	%.1 =s call $g()
	%.2 =w cges %.1, s_0x1p+63
	jnz %.2, @ftou_big.4, @ftou_small.3
@ftou_small.3
	%.3 =l stosi %.1
	jmp @ftou_join.5
@ftou_big.4
	%.4 =s sub %.1, s_0x1p+63
	%.5 =l stosi %.4
	%.6 =l xor %.5, 9223372036854775808
@ftou_join.5
	%.7 =l phi @ftou_small.3 %.3, @ftou_big.4 %.6
	ret %.7
}