[PATCH] D92530: [compiler-rt] [builtins] Make lse.S compile on Darwin
Kuba (Brecka) Mracek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 3 08:56:01 PST 2020
kubamracek updated this revision to Diff 309273.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92530/new/
https://reviews.llvm.org/D92530
Files:
compiler-rt/lib/builtins/aarch64/lse.S
Index: compiler-rt/lib/builtins/aarch64/lse.S
===================================================================
--- compiler-rt/lib/builtins/aarch64/lse.S
+++ compiler-rt/lib/builtins/aarch64/lse.S
@@ -102,8 +102,13 @@
// Macro for branch to label if no LSE available
.macro JUMP_IF_NOT_LSE label
+#if !defined(__APPLE__)
adrp x(tmp0), __aarch64_have_lse_atomics
ldrb w(tmp0), [x(tmp0), :lo12:__aarch64_have_lse_atomics]
+#else
+ adrp x(tmp0), __aarch64_have_lse_atomics at page
+ ldrb w(tmp0), [x(tmp0), __aarch64_have_lse_atomics at pageoff]
+#endif
cbz w(tmp0), \label
.endm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92530.309273.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201203/7a6ddf0c/attachment.bin>
More information about the llvm-commits
mailing list