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

Oliver Stannard via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 02:29:29 PDT 2015


olista01 created this revision.
olista01 added reviewers: ab, rengolin.
olista01 added a subscriber: llvm-commits.
olista01 set the repository for this revision to rL LLVM.
Herald added subscribers: rengolin, aemerson.

The ARM RTABI defines these functions as __aeabi_h2f and __aeabi_f2h, so we need aliases for them,

Repository:
  rL LLVM

http://reviews.llvm.org/D13204

Files:
  lib/builtins/extendhfsf2.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/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.35844.patch
Type: text/x-patch
Size: 972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150928/2e077644/attachment.bin>


More information about the llvm-commits mailing list