[builtins] Add __cmpsf2 for ARM version of comparesf2
authorYi Kong <yikong@google.com>
Wed, 17 Apr 2019 01:30:33 +0000 (01:30 +0000)
committerYi Kong <yikong@google.com>
Wed, 17 Apr 2019 01:30:33 +0000 (01:30 +0000)
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

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

index 5f76b6f..d5cc922 100644 (file)
@@ -175,6 +175,11 @@ DEFINE_COMPILERRT_FUNCTION_ALIAS(__lesf2, __eqsf2)
 DEFINE_COMPILERRT_FUNCTION_ALIAS(__ltsf2, __eqsf2)
 DEFINE_COMPILERRT_FUNCTION_ALIAS(__nesf2, __eqsf2)
 
+#if defined(__ELF__)
+// Alias for libgcc compatibility
+DEFINE_COMPILERRT_FUNCTION_ALIAS(__cmpsf2, __lesf2)
+#endif
+
 @ int __gtsf2(float a, float b)
 
     .p2align 2