[PATCH] D12091: [compiler-rt] Add libgcc compatibility aliases for __cmp{s, d, f}f2.
Josh Gao via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 19:52:22 PDT 2015
This revision was automatically updated to reflect the committed changes.
jmgao marked an inline comment as done.
Closed by commit rL245663: [compiler-rt] Add libgcc compatibility aliases for __cmp{s,d,f}f2. (authored by jmgao).
Changed prior to commit:
http://reviews.llvm.org/D12091?vs=32575&id=32787#toc
Repository:
rL LLVM
http://reviews.llvm.org/D12091
Files:
compiler-rt/trunk/lib/builtins/comparedf2.c
compiler-rt/trunk/lib/builtins/comparesf2.c
compiler-rt/trunk/lib/builtins/comparetf2.c
compiler-rt/trunk/lib/builtins/int_lib.h
Index: compiler-rt/trunk/lib/builtins/comparetf2.c
===================================================================
--- compiler-rt/trunk/lib/builtins/comparetf2.c
+++ compiler-rt/trunk/lib/builtins/comparetf2.c
@@ -79,6 +79,9 @@
}
}
+// Alias for libgcc compatibility
+FNALIAS(__cmptf2, __letf2);
+
enum GE_RESULT {
GE_LESS = -1,
GE_EQUAL = 0,
Index: compiler-rt/trunk/lib/builtins/int_lib.h
===================================================================
--- compiler-rt/trunk/lib/builtins/int_lib.h
+++ compiler-rt/trunk/lib/builtins/int_lib.h
@@ -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__
Index: compiler-rt/trunk/lib/builtins/comparedf2.c
===================================================================
--- compiler-rt/trunk/lib/builtins/comparedf2.c
+++ compiler-rt/trunk/lib/builtins/comparedf2.c
@@ -80,6 +80,9 @@
}
}
+// Alias for libgcc compatibility
+FNALIAS(__cmpdf2, __ledf2);
+
enum GE_RESULT {
GE_LESS = -1,
GE_EQUAL = 0,
Index: compiler-rt/trunk/lib/builtins/comparesf2.c
===================================================================
--- compiler-rt/trunk/lib/builtins/comparesf2.c
+++ compiler-rt/trunk/lib/builtins/comparesf2.c
@@ -80,6 +80,9 @@
}
}
+// Alias for libgcc compatibility
+FNALIAS(__cmpsf2, __lesf2);
+
enum GE_RESULT {
GE_LESS = -1,
GE_EQUAL = 0,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12091.32787.patch
Type: text/x-patch
Size: 1645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150821/0ee9669d/attachment.bin>
More information about the llvm-commits
mailing list