[compiler-rt] 354cdd4 - [compiler-rt] [ARM] Restore Windows specific names for fp->int functions (#200360)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 29 03:33:51 PDT 2026
Author: Martin Storsjö
Date: 2026-05-29T13:33:46+03:00
New Revision: 354cdd40be8715c41c1d68faab31c330e026b369
URL: https://github.com/llvm/llvm-project/commit/354cdd40be8715c41c1d68faab31c330e026b369
DIFF: https://github.com/llvm/llvm-project/commit/354cdd40be8715c41c1d68faab31c330e026b369.diff
LOG: [compiler-rt] [ARM] Restore Windows specific names for fp->int functions (#200360)
These Windows specific names were added in
8c59680ac26cf3d772f51aa5ebd64be8e59ed384 (and refactored later in
e6407356ba008e474322d52b7d031f65fa4913fc).
When ARM specific implementations of them were added in
174eb79572b3433aa338ede31815fa8fa6a13b29, the ARM specific files replace
the generic ones - while the ARM specific file lacked the Windows/ARM
renaming of the functions.
Restore the Windows naming of these functions.
Added:
Modified:
compiler-rt/lib/builtins/arm/fixdfdi.S
compiler-rt/lib/builtins/arm/fixsfdi.S
compiler-rt/lib/builtins/arm/fixunsdfdi.S
compiler-rt/lib/builtins/arm/fixunssfdi.S
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/arm/fixdfdi.S b/compiler-rt/lib/builtins/arm/fixdfdi.S
index 1e099d4b944a1..212a483af0c9b 100644
--- a/compiler-rt/lib/builtins/arm/fixdfdi.S
+++ b/compiler-rt/lib/builtins/arm/fixdfdi.S
@@ -208,4 +208,8 @@ LOCAL_LABEL(nan):
END_COMPILERRT_FUNCTION(__aeabi_d2lz)
+#if defined(__MINGW32__)
+DEFINE_COMPILERRT_FUNCTION_ALIAS(__dtoi64, __fixdfdi)
+#endif
+
NO_EXEC_STACK_DIRECTIVE
diff --git a/compiler-rt/lib/builtins/arm/fixsfdi.S b/compiler-rt/lib/builtins/arm/fixsfdi.S
index 94fb8521f0dc6..bda0b53e27831 100644
--- a/compiler-rt/lib/builtins/arm/fixsfdi.S
+++ b/compiler-rt/lib/builtins/arm/fixsfdi.S
@@ -135,4 +135,8 @@ LOCAL_LABEL(return_zero):
END_COMPILERRT_FUNCTION(__aeabi_f2lz)
+#if defined(__MINGW32__)
+DEFINE_COMPILERRT_FUNCTION_ALIAS(__stoi64, __fixsfdi)
+#endif
+
NO_EXEC_STACK_DIRECTIVE
diff --git a/compiler-rt/lib/builtins/arm/fixunsdfdi.S b/compiler-rt/lib/builtins/arm/fixunsdfdi.S
index 6067b216e8f3a..4fcd4e7f03540 100644
--- a/compiler-rt/lib/builtins/arm/fixunsdfdi.S
+++ b/compiler-rt/lib/builtins/arm/fixunsdfdi.S
@@ -156,4 +156,8 @@ LOCAL_LABEL(positive_invalid):
END_COMPILERRT_FUNCTION(__aeabi_d2ulz)
+#if defined(__MINGW32__)
+DEFINE_COMPILERRT_FUNCTION_ALIAS(__dtou64, __fixunsdfdi)
+#endif
+
NO_EXEC_STACK_DIRECTIVE
diff --git a/compiler-rt/lib/builtins/arm/fixunssfdi.S b/compiler-rt/lib/builtins/arm/fixunssfdi.S
index 7a4eef58abbc3..2a8ad42717931 100644
--- a/compiler-rt/lib/builtins/arm/fixunssfdi.S
+++ b/compiler-rt/lib/builtins/arm/fixunssfdi.S
@@ -100,4 +100,8 @@ LOCAL_LABEL(positive_invalid):
END_COMPILERRT_FUNCTION(__aeabi_f2ulz)
+#if defined(__MINGW32__)
+DEFINE_COMPILERRT_FUNCTION_ALIAS(__stou64, __fixunssfdi)
+#endif
+
NO_EXEC_STACK_DIRECTIVE
More information about the llvm-commits
mailing list