[compiler-rt] [llvm] [compiler-rt] Use integers for __gnu_h2f_ieee and __gnu_f2h_ieee (PR #220167)
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 5 20:12:02 PDT 2026
================
@@ -16,14 +16,16 @@ COMPILER_RT_ABI NOINLINE float __extendhfsf2(src_t a) {
return __extendXfYf2__(a);
}
+// arm32-gnueabi-only routine that always uses the integer ABI. This should be
+// gnueabi-specific, but LLVM currently emits it on more arm platforms.
+COMPILER_RT_ABI uint32_t __gnu_h2f_ieee(uint16_t a) {
+ return dstToRep(__extendXfYf2__(srcFromRep(a)));
----------------
compnerd wrote:
You can build the runtime dynamically - in which case you can have both. Yes, lets make it call `__extendhfsf2` like it currently does and then this should be good to go.
https://github.com/llvm/llvm-project/pull/220167
More information about the llvm-commits
mailing list