Skip to content

Commit 64c3236

Browse files
committed
[builtins] Add __cmpsf2 for ARM version of comparesf2
The generic version of comparesf2 defines __cmpsf2 alias for libgcc compatibility, but the ARM overlay is missing the alias. Differential Revision: https://reviews.llvm.org/D60805 llvm-svn: 358542
1 parent 83465c7 commit 64c3236

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler-rt/lib/builtins/arm/comparesf2.S

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ DEFINE_COMPILERRT_FUNCTION_ALIAS(__lesf2, __eqsf2)
175175
DEFINE_COMPILERRT_FUNCTION_ALIAS(__ltsf2, __eqsf2)
176176
DEFINE_COMPILERRT_FUNCTION_ALIAS(__nesf2, __eqsf2)
177177

178+
#if defined(__ELF__)
179+
// Alias for libgcc compatibility
180+
DEFINE_COMPILERRT_FUNCTION_ALIAS(__cmpsf2, __lesf2)
181+
#endif
182+
178183
@ int __gtsf2(float a, float b)
179184

180185
.p2align 2

0 commit comments

Comments
 (0)