From 31c2d5aa28eed34dc6949db828c1ae9a81203740 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 29 May 2019 16:37:49 -0700 Subject: 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. --- test/float-to-uint64.qbe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/float-to-uint64.qbe') 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 -- cgit v1.2.3