[PATCH] D13204: Add ARM RTABI aliases for extendhfsf2 and truncsfhf2

Oliver Stannard via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 03:12:26 PDT 2015


olista01 removed rL LLVM as the repository for this revision.
olista01 updated this revision to Diff 36493.
olista01 added a comment.

Also add d2h alias.


http://reviews.llvm.org/D13204

Files:
  lib/builtins/extendhfsf2.c
  lib/builtins/truncdfhf2.c
  lib/builtins/truncsfhf2.c

Index: lib/builtins/truncsfhf2.c
===================================================================
--- lib/builtins/truncsfhf2.c
+++ 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 __attribute__((noinline)) uint16_t __truncsfhf2(float a) {
Index: lib/builtins/truncdfhf2.c
===================================================================
--- lib/builtins/truncdfhf2.c
+++ 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);
 }
Index: lib/builtins/extendhfsf2.c
===================================================================
--- lib/builtins/extendhfsf2.c
+++ 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 __attribute__((noinline)) float __extendhfsf2(uint16_t a) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13204.36493.patch
Type: text/x-patch
Size: 1323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151005/40eaaaa4/attachment.bin>


More information about the llvm-commits mailing list