[PATCH] D92530: [compiler-rt] [builtins] Make lse.S compile on Darwin

Raul Tambre via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 14 06:39:06 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGaa772fc85e0f: [compiler-rt] [builtins] Make lse.S compile on Darwin (authored by kubamracek, committed by tambre).

Repository:
  rG LLVM Github Monorepo

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.311566.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201214/cb08ee11/attachment.bin>


More information about the llvm-commits mailing list