forked from OSchip/llvm-project
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
This commit is contained in:
parent
88c47c8330
commit
28d2edad5b
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue