[PATCH] D36762: [Builtins][ARM] Force ARM state for bswap for pre-ARMv6
Weiming Zhao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 12:57:53 PDT 2017
weimingz updated this revision to Diff 111231.
weimingz added a comment.
guard the "DEFINE_CODE_STATE" with "__ARM_ARCH < 6" check.
https://reviews.llvm.org/D36762
Files:
lib/builtins/arm/bswapdi2.S
lib/builtins/arm/bswapsi2.S
Index: lib/builtins/arm/bswapsi2.S
===================================================================
--- lib/builtins/arm/bswapsi2.S
+++ lib/builtins/arm/bswapsi2.S
@@ -11,7 +11,11 @@
.syntax unified
.text
+#if __ARM_ARCH < 6
+ .arm
+#else
DEFINE_CODE_STATE
+#endif
//
// extern uint32_t __bswapsi2(uint32_t);
Index: lib/builtins/arm/bswapdi2.S
===================================================================
--- lib/builtins/arm/bswapdi2.S
+++ lib/builtins/arm/bswapdi2.S
@@ -11,7 +11,11 @@
.syntax unified
.text
+#if __ARM_ARCH < 6
+ .arm
+#else
DEFINE_CODE_STATE
+#endif
//
// extern uint64_t __bswapdi2(uint64_t);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36762.111231.patch
Type: text/x-patch
Size: 648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170815/55765800/attachment.bin>
More information about the llvm-commits
mailing list