aboutsummaryrefslogtreecommitdiffstats
path: root/arm/TargetPrinter.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2016-04-09 09:55:03 +0200
committerXavier Leroy <xavier.leroy@inria.fr>2016-04-09 09:55:03 +0200
commite3a336fca8c785f3f4992a8fd23f573a688c6e37 (patch)
tree4e1db1684e4ebbeeaf136f12c8ccd8101c4209a6 /arm/TargetPrinter.ml
parent4f8ba5f0651eb986a63ffc58c072ed06fac0f53b (diff)
downloadcompcert-kvx-e3a336fca8c785f3f4992a8fd23f573a688c6e37.tar.gz
compcert-kvx-e3a336fca8c785f3f4992a8fd23f573a688c6e37.zip
*/TargetPrinter.ml: wrong comment attached to Init_float32 constants
For informative purposes, the FP value of Init_float* constants is printed as a comment in the generated asm file. However, for Init_float32, it was wrongly printed as a double-precision FP instead of a single-precision FP.
Diffstat (limited to 'arm/TargetPrinter.ml')
-rw-r--r--arm/TargetPrinter.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm/TargetPrinter.ml b/arm/TargetPrinter.ml
index bfe11555..4120b188 100644
--- a/arm/TargetPrinter.ml
+++ b/arm/TargetPrinter.ml
@@ -827,7 +827,7 @@ module Target (Opt: PRINTER_OPTIONS) : TARGET =
fprintf oc " .quad %Ld\n" (camlint64_of_coqint n)
| Init_float32 n ->
fprintf oc " .word 0x%lx %s %.15g \n" (camlint_of_coqint (Floats.Float32.to_bits n))
- comment (camlfloat_of_coqfloat n)
+ comment (camlfloat_of_coqfloat32 n)
| Init_float64 n ->
fprintf oc " .quad %Ld %s %.18g\n" (camlint64_of_coqint (Floats.Float.to_bits n))
comment (camlfloat_of_coqfloat n)