[compiler-rt] Add libgcc compatibility aliases for __cmp{s,d,f}f2.

Reviewers: compnerd

Subscribers: asl, llvm-commits

Differential Revision: http://reviews.llvm.org/D12091

llvm-svn: 245663
This commit is contained in:
Josh Gao 2015-08-21 02:51:17 +00:00
parent 1dc6a8d179
commit 772527c57b
4 changed files with 12 additions and 0 deletions

View File

@ -80,6 +80,9 @@ __ledf2(fp_t a, fp_t b) {
}
}
// Alias for libgcc compatibility
FNALIAS(__cmpdf2, __ledf2);
enum GE_RESULT {
GE_LESS = -1,
GE_EQUAL = 0,

View File

@ -80,6 +80,9 @@ __lesf2(fp_t a, fp_t b) {
}
}
// Alias for libgcc compatibility
FNALIAS(__cmpsf2, __lesf2);
enum GE_RESULT {
GE_LESS = -1,
GE_EQUAL = 0,

View File

@ -79,6 +79,9 @@ COMPILER_RT_ABI enum LE_RESULT __letf2(fp_t a, fp_t b) {
}
}
// Alias for libgcc compatibility
FNALIAS(__cmptf2, __letf2);
enum GE_RESULT {
GE_LESS = -1,
GE_EQUAL = 0,

View File

@ -20,6 +20,9 @@
/* Assumption: Right shift of signed negative is arithmetic shift. */
/* Assumption: Endianness is little or big (not mixed). */
#define FNALIAS(alias_name, original_name) \
void alias_name() __attribute__((alias(#original_name)))
/* ABI macro definitions */
#if __ARM_EABI__