summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2015-10-07 16:15:22 +0000
committerOliver Stannard <oliver.stannard@arm.com>2015-10-07 16:15:22 +0000
commit28d2edad5b6580fe1cb0cb6251fab25c6473031e (patch)
tree24802c43f43e46f13a47a8c70ed42a8707c6fcfb
parent88c47c8330496238bfa6c10a4f4e504c52616207 (diff)
downloadbcm5719-llvm-28d2edad5b6580fe1cb0cb6251fab25c6473031e.tar.gz
bcm5719-llvm-28d2edad5b6580fe1cb0cb6251fab25c6473031e.zip
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. llvm-svn: 249559
-rw-r--r--compiler-rt/lib/builtins/extendhfsf2.c2
-rw-r--r--compiler-rt/lib/builtins/truncdfhf2.c2
-rw-r--r--compiler-rt/lib/builtins/truncsfhf2.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/extendhfsf2.c b/compiler-rt/lib/builtins/extendhfsf2.c
index fc1ca6916b4..27115a48c18 100644
--- a/compiler-rt/lib/builtins/extendhfsf2.c
+++ b/compiler-rt/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/compiler-rt/lib/builtins/truncdfhf2.c b/compiler-rt/lib/builtins/truncdfhf2.c
index 0852df36962..17195cd9e79 100644
--- a/compiler-rt/lib/builtins/truncdfhf2.c
+++ b/compiler-rt/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/compiler-rt/lib/builtins/truncsfhf2.c b/compiler-rt/lib/builtins/truncsfhf2.c
index 5dbf8aa2299..9d61895bfd8 100644
--- a/compiler-rt/lib/builtins/truncsfhf2.c
+++ b/compiler-rt/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) {
OpenPOWER on IntegriCloud