From 2a0168fea37b68ad14e2cb60bf215111e49d4870 Mon Sep 17 00:00:00 2001 From: xleroy Date: Wed, 23 Jul 2014 08:54:56 +0000 Subject: Merge of "newspilling" branch: - Support single-precision floats as first-class values - Introduce chunks Many32, Many64 and types Tany32, Tany64 to support saving and restoring registers without knowing the exact types (int/single/float) of their contents, just their sizes. - Memory model: generalize the opaque encoding of pointers to apply to any value, not just pointers, if chunks Many32/Many64 are selected. - More properties of FP arithmetic proved. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2537 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- exportclight/ExportClight.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exportclight') diff --git a/exportclight/ExportClight.ml b/exportclight/ExportClight.ml index 409abcf..02f1249 100644 --- a/exportclight/ExportClight.ml +++ b/exportclight/ExportClight.ml @@ -121,10 +121,10 @@ let coqint p n = else fprintf p "(Int.repr (%ld))" n let coqfloat p n = - let n = camlint64_of_coqint(Floats.Float.bits_of_double n) in + let n = camlint64_of_coqint(Floats.Float.to_bits n) in if n >= 0L - then fprintf p "(Float.double_of_bits (Int64.repr %Ld))" n - else fprintf p "(Float.double_of_bits (Int64.repr (%Ld)))" n + then fprintf p "(Float.of_bits (Int64.repr %Ld))" n + else fprintf p "(Float.of_bits (Int64.repr (%Ld)))" n let coqint64 p n = let n = camlint64_of_coqint n in -- cgit v1.2.3