diff --git a/compiler-rt/lib/builtins/extendhfsf2.c b/compiler-rt/lib/builtins/extendhfsf2.c index 0159ab09d3ebb..c0f25cdadcd4f 100644 --- a/compiler-rt/lib/builtins/extendhfsf2.c +++ b/compiler-rt/lib/builtins/extendhfsf2.c @@ -16,12 +16,14 @@ COMPILER_RT_ABI NOINLINE float __extendhfsf2(src_t a) { return __extendXfYf2__(a); } -COMPILER_RT_ABI float __gnu_h2f_ieee(src_t a) { return __extendhfsf2(a); } - #if defined(__ARM_EABI__) #if defined(COMPILER_RT_ARMHF_TARGET) +AEABI_RTABI float __gnu_h2f_ieee(src_t a) { return __extendhfsf2(a); } AEABI_RTABI float __aeabi_h2f(src_t a) { return __extendhfsf2(a); } #else +COMPILER_RT_ALIAS(__extendhfsf2, __gnu_h2f_ieee) COMPILER_RT_ALIAS(__extendhfsf2, __aeabi_h2f) #endif +#else +COMPILER_RT_ABI float __gnu_h2f_ieee(src_t a) { return __extendhfsf2(a); } #endif diff --git a/compiler-rt/lib/builtins/truncsfhf2.c b/compiler-rt/lib/builtins/truncsfhf2.c index 379e7cb6f7845..6ad8621b8bb02 100644 --- a/compiler-rt/lib/builtins/truncsfhf2.c +++ b/compiler-rt/lib/builtins/truncsfhf2.c @@ -16,12 +16,14 @@ COMPILER_RT_ABI NOINLINE dst_t __truncsfhf2(float a) { return __truncXfYf2__(a); } -COMPILER_RT_ABI dst_t __gnu_f2h_ieee(float a) { return __truncsfhf2(a); } - #if defined(__ARM_EABI__) #if defined(COMPILER_RT_ARMHF_TARGET) +AEABI_RTABI dst_t __gnu_f2h_ieee(float a) { return __truncsfhf2(a); } AEABI_RTABI dst_t __aeabi_f2h(float a) { return __truncsfhf2(a); } #else +COMPILER_RT_ALIAS(__truncsfhf2, __gnu_f2h_ieee) COMPILER_RT_ALIAS(__truncsfhf2, __aeabi_f2h) #endif +#else +COMPILER_RT_ABI dst_t __gnu_f2h_ieee(float a) { return __truncsfhf2(a); } #endif