[PATCH] D62554: [builtins] Move the compare2f definition outside of the macro
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 18:49:20 PDT 2019
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL361909: [builtins] Move the compare2f definition outside of the macro (authored by phosek, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D62554?vs=201778&id=201807#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62554/new/
https://reviews.llvm.org/D62554
Files:
compiler-rt/trunk/lib/builtins/arm/comparesf2.S
Index: compiler-rt/trunk/lib/builtins/arm/comparesf2.S
===================================================================
--- compiler-rt/trunk/lib/builtins/arm/comparesf2.S
+++ compiler-rt/trunk/lib/builtins/arm/comparesf2.S
@@ -38,12 +38,11 @@
#include "../assembly.h"
- .macro COMPARESF2_FUNCTION name:req handle_nan:req
-@ int \name(float a, float b)
-
- .p2align 2
-DEFINE_COMPILERRT_FUNCTION(\name)
+ .syntax unified
+ .text
+ DEFINE_CODE_STATE
+ .macro COMPARESF2_FUNCTION_BODY handle_nan:req
#if defined(COMPILER_RT_ARMHF_TARGET)
vmov r0, s0
vmov r1, s1
@@ -168,12 +167,12 @@
\handle_nan
JMP(lr)
#endif
-END_COMPILERRT_FUNCTION(\name)
.endm
- .syntax unified
- .text
- DEFINE_CODE_STATE
+@ int __eqsf2(float a, float b)
+
+ .p2align 2
+DEFINE_COMPILERRT_FUNCTION(__eqsf2)
.macro __eqsf2_handle_nan
#if defined(USE_THUMB_1)
@@ -183,7 +182,9 @@
#endif
.endm
-COMPARESF2_FUNCTION __eqsf2, __eqsf2_handle_nan
+COMPARESF2_FUNCTION_BODY __eqsf2_handle_nan
+
+END_COMPILERRT_FUNCTION(__eqsf2)
DEFINE_COMPILERRT_FUNCTION_ALIAS(__lesf2, __eqsf2)
DEFINE_COMPILERRT_FUNCTION_ALIAS(__ltsf2, __eqsf2)
@@ -194,6 +195,11 @@
DEFINE_COMPILERRT_FUNCTION_ALIAS(__cmpsf2, __lesf2)
#endif
+@ int __gtsf2(float a, float b)
+
+ .p2align 2
+DEFINE_COMPILERRT_FUNCTION(__gtsf2)
+
.macro __gtsf2_handle_nan
#if defined(USE_THUMB_1)
movs r0, #1
@@ -203,7 +209,9 @@
#endif
.endm
-COMPARESF2_FUNCTION __gtsf2, __gtsf2_handle_nan
+COMPARESF2_FUNCTION_BODY __gtsf2_handle_nan
+
+END_COMPILERRT_FUNCTION(__gtsf2)
DEFINE_COMPILERRT_FUNCTION_ALIAS(__gesf2, __gtsf2)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62554.201807.patch
Type: text/x-patch
Size: 1669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190529/716f418a/attachment.bin>
More information about the llvm-commits
mailing list