From d8478f94377c30b0c1fd017df878b0a40e2c6d45 Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Tue, 26 Dec 2017 20:59:46 +0000 Subject: Update to compiler-rt 5.0.1. ok kettenis@ --- lib/libcompiler_rt/arm/floatunssidfvfp.S | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/libcompiler_rt/arm/floatunssidfvfp.S') diff --git a/lib/libcompiler_rt/arm/floatunssidfvfp.S b/lib/libcompiler_rt/arm/floatunssidfvfp.S index 2a59fdb830b..d7a7024a25b 100644 --- a/lib/libcompiler_rt/arm/floatunssidfvfp.S +++ b/lib/libcompiler_rt/arm/floatunssidfvfp.S @@ -19,9 +19,14 @@ .syntax unified .p2align 2 DEFINE_COMPILERRT_FUNCTION(__floatunssidfvfp) +#if defined(COMPILER_RT_ARMHF_TARGET) + vmov s0, r0 + vcvt.f64.u32 d0, s0 +#else vmov s15, r0 // move int to float register s15 vcvt.f64.u32 d7, s15 // convert 32-bit int in s15 to double in d7 vmov r0, r1, d7 // move d7 to result register pair r0/r1 +#endif bx lr END_COMPILERRT_FUNCTION(__floatunssidfvfp) -- cgit v1.2.3