summaryrefslogtreecommitdiff
path: root/runtime/arm/i64_dtou.S
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-05-02 14:40:15 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-05-02 14:40:15 +0000
commit7a93de2caaa6e1adca77b1d33d1e97f5d30e52ae (patch)
tree434726f9efecbee81010fca5d74dcc080220f91a /runtime/arm/i64_dtou.S
parent63722daa40aabf505c634d5cd88b03574f96dc70 (diff)
Adapt to the two different calling conventions for floats.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2476 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'runtime/arm/i64_dtou.S')
-rw-r--r--runtime/arm/i64_dtou.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/arm/i64_dtou.S b/runtime/arm/i64_dtou.S
index 50648a5..a9e7b65 100644
--- a/runtime/arm/i64_dtou.S
+++ b/runtime/arm/i64_dtou.S
@@ -40,6 +40,9 @@
.global __i64_dtou
__i64_dtou:
+#ifdef VARIANT_hardfloat
+ fmrrd r0, r1, d0
+#endif
cmp r1, #0 @ is double < 0 ?
blt 1f @ then it converts to 0
@ extract unbiased exponent ((HI & 0x7FF00000) >> 20) - (1023 + 52) in r2