[compiler-rt] Add missing extendhfxf2 in compiler rt (PR #109090)

B I Mohammed Abbas via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 02:21:04 PDT 2024


https://github.com/biabbas updated https://github.com/llvm/llvm-project/pull/109090

>From 34a812421f03c888cb7fbf3b7f27b4732c99afe8 Mon Sep 17 00:00:00 2001
From: B I Mohammed Abbas <bimohammadabbas at gmail.com>
Date: Wed, 18 Sep 2024 11:51:23 +0530
Subject: [PATCH] Add missing extendhfxf2 in compiler rt

---
 compiler-rt/lib/builtins/extendhfsf2.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compiler-rt/lib/builtins/extendhfsf2.c b/compiler-rt/lib/builtins/extendhfsf2.c
index 0159ab09d3ebb5..3519f71bbb4efd 100644
--- a/compiler-rt/lib/builtins/extendhfsf2.c
+++ b/compiler-rt/lib/builtins/extendhfsf2.c
@@ -16,6 +16,10 @@ COMPILER_RT_ABI NOINLINE float __extendhfsf2(src_t a) {
   return __extendXfYf2__(a);
 }
 
+COMPILER_RT_ABI NOINLINE long double __extendhfxf2(src_t a) {
+  return (long double)__extendXfYf2__(a);
+}
+
 COMPILER_RT_ABI float __gnu_h2f_ieee(src_t a) { return __extendhfsf2(a); }
 
 #if defined(__ARM_EABI__)



More information about the llvm-commits mailing list