aboutsummaryrefslogtreecommitdiff
path: root/test/float-to-uint64.qbe
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-05-29 16:37:49 -0700
committerMichael Forney <mforney@mforney.org>2019-05-29 17:04:17 -0700
commit31c2d5aa28eed34dc6949db828c1ae9a81203740 (patch)
tree07690174fe58041d9213daa330f0f02ad5a8346d /test/float-to-uint64.qbe
parentc1d079fae39e20ea695f575a221e2251727d07aa (diff)
Temporarily avoid %a when printing floating constants
This is C99, but is not supported by fscanf in OpenBSD, so floating constants can't be read back in by QBE.
Diffstat (limited to 'test/float-to-uint64.qbe')
-rw-r--r--test/float-to-uint64.qbe4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/float-to-uint64.qbe b/test/float-to-uint64.qbe
index 3c3aa01..b19ff32 100644
--- a/test/float-to-uint64.qbe
+++ b/test/float-to-uint64.qbe
@@ -3,13 +3,13 @@ function l $f() {
@start.1
@body.2
%.1 =s call $g()
- %.2 =w cges %.1, s_0x1p+63
+ %.2 =w cges %.1, s_9223372036854775808
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
+ %.4 =s sub %.1, s_9223372036854775808
%.5 =l stosi %.4
%.6 =l xor %.5, 9223372036854775808
@ftou_join.5