[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
Mon Aug 17 15:45:17 PDT 2015


jmgao created this revision.
jmgao added a reviewer: compnerd.
jmgao added a subscriber: llvm-commits.
jmgao set the repository for this revision to rL LLVM.

Repository:
  rL LLVM

http://reviews.llvm.org/D12091

Files:
  lib/builtins/comparedf2.c
  lib/builtins/comparesf2.c
  lib/builtins/comparetf2.c

Index: lib/builtins/comparetf2.c
===================================================================
--- lib/builtins/comparetf2.c
+++ lib/builtins/comparetf2.c
@@ -79,6 +79,10 @@
     }
 }
 
+// Alias for libgcc compatibility
+COMPILER_RT_ABI enum LE_RESULT
+__cmptf2(fp_t a, fp_t b) __attribute__((alias("__letf2")));
+
 enum GE_RESULT {
     GE_LESS      = -1,
     GE_EQUAL     =  0,
Index: lib/builtins/comparesf2.c
===================================================================
--- lib/builtins/comparesf2.c
+++ lib/builtins/comparesf2.c
@@ -80,6 +80,10 @@
     }
 }
 
+// Alias for libgcc compatibility
+COMPILER_RT_ABI enum LE_RESULT
+__cmpsf2(fp_t a, fp_t b) __attribute__((alias("__lesf2")));
+
 enum GE_RESULT {
     GE_LESS      = -1,
     GE_EQUAL     =  0,
Index: lib/builtins/comparedf2.c
===================================================================
--- lib/builtins/comparedf2.c
+++ lib/builtins/comparedf2.c
@@ -80,6 +80,10 @@
     }
 }
 
+// Alias for libgcc compatibility
+COMPILER_RT_ABI enum LE_RESULT
+__cmpdf2(fp_t a, fp_t b) __attribute__((alias("__ledf2")));
+
 enum GE_RESULT {
     GE_LESS      = -1,
     GE_EQUAL     =  0,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12091.32348.patch
Type: text/x-patch
Size: 1164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150817/7145fbda/attachment.bin>


More information about the llvm-commits mailing list