From be8a514cd0a243794b97cf7058bfc7ece5595723 Mon Sep 17 00:00:00 2001 From: Oliver Stannard Date: Wed, 7 Oct 2015 16:15:22 +0000 Subject: Add ARM RTABI aliases for half-precision conversions The ARM RTABI defines these functions as __aeabi_h2f, __aeabi_f2h and __aeabi_d2h, so we need aliases for them. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@249559 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/builtins/extendhfsf2.c | 2 ++ lib/builtins/truncdfhf2.c | 2 ++ lib/builtins/truncsfhf2.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/lib/builtins/extendhfsf2.c b/lib/builtins/extendhfsf2.c index fc1ca6916..27115a48c 100644 --- a/lib/builtins/extendhfsf2.c +++ b/lib/builtins/extendhfsf2.c @@ -12,6 +12,8 @@ #define DST_SINGLE #include "fp_extend_impl.inc" +ARM_EABI_FNALIAS(h2f, extendhfsf2) + // Use a forwarding definition and noinline to implement a poor man's alias, // as there isn't a good cross-platform way of defining one. COMPILER_RT_ABI NOINLINE float __extendhfsf2(uint16_t a) { diff --git a/lib/builtins/truncdfhf2.c b/lib/builtins/truncdfhf2.c index 0852df369..17195cd9e 100644 --- a/lib/builtins/truncdfhf2.c +++ b/lib/builtins/truncdfhf2.c @@ -11,6 +11,8 @@ #define DST_HALF #include "fp_trunc_impl.inc" +ARM_EABI_FNALIAS(d2h, truncdfhf2) + COMPILER_RT_ABI uint16_t __truncdfhf2(double a) { return __truncXfYf2__(a); } diff --git a/lib/builtins/truncsfhf2.c b/lib/builtins/truncsfhf2.c index 5dbf8aa22..9d61895bf 100644 --- a/lib/builtins/truncsfhf2.c +++ b/lib/builtins/truncsfhf2.c @@ -11,6 +11,8 @@ #define DST_HALF #include "fp_trunc_impl.inc" +ARM_EABI_FNALIAS(f2h, truncsfhf2) + // Use a forwarding definition and noinline to implement a poor man's alias, // as there isn't a good cross-platform way of defining one. COMPILER_RT_ABI NOINLINE uint16_t __truncsfhf2(float a) { -- cgit v1.2.3