[llvm] 42d1a1c - [WebAssembly] Fix signatures of frexpf family of libcalls (#133289)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 31 10:20:44 PDT 2025
Author: Sam Clegg
Date: 2025-03-31T10:20:40-07:00
New Revision: 42d1a1cb849195304dc93004f5808ef82904cd89
URL: https://github.com/llvm/llvm-project/commit/42d1a1cb849195304dc93004f5808ef82904cd89
DIFF: https://github.com/llvm/llvm-project/commit/42d1a1cb849195304dc93004f5808ef82904cd89.diff
LOG: [WebAssembly] Fix signatures of frexpf family of libcalls (#133289)
Fixes: https://github.com/emscripten-core/emscripten/issues/23997
Added:
Modified:
llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
index 94d80f19e48af..ce795d3dedc6a 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
@@ -278,9 +278,9 @@ struct RuntimeLibcallSignatureTable {
Table[RTLIB::LDEXP_F32] = f32_func_f32_i32;
Table[RTLIB::LDEXP_F64] = f64_func_f64_i32;
Table[RTLIB::LDEXP_F128] = i64_i64_func_i64_i64_i32;
- Table[RTLIB::FREXP_F32] = f32_func_f32_i32;
- Table[RTLIB::FREXP_F64] = f64_func_f64_i32;
- Table[RTLIB::FREXP_F128] = i64_i64_func_i64_i64_i32;
+ Table[RTLIB::FREXP_F32] = f32_func_f32_iPTR;
+ Table[RTLIB::FREXP_F64] = f64_func_f64_iPTR;
+ Table[RTLIB::FREXP_F128] = i64_i64_func_i64_i64_iPTR;
Table[RTLIB::MODF_F32] = f32_func_f32_iPTR;
Table[RTLIB::MODF_F64] = f64_func_f64_iPTR;
Table[RTLIB::MODF_F128] = i64_i64_func_i64_i64_iPTR;
More information about the llvm-commits
mailing list