We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18561a6 + 76df208 commit 01a6ba8Copy full SHA for 01a6ba8
compiler-rt/lib/builtins/aarch64/lse.S
@@ -127,8 +127,13 @@ HIDDEN(SYMBOL_NAME(__aarch64_have_lse_atomics))
127
128
// Macro for branch to label if no LSE available
129
.macro JUMP_IF_NOT_LSE label
130
+#if defined(__APPLE__)
131
+ adrp x(tmp0), SYMBOL_NAME(__aarch64_have_lse_atomics)@page
132
+ ldrb w(tmp0), [x(tmp0), SYMBOL_NAME(__aarch64_have_lse_atomics)@pageoff]
133
+#else
134
adrp x(tmp0), SYMBOL_NAME(__aarch64_have_lse_atomics)
135
ldrb w(tmp0), [x(tmp0), :lo12:SYMBOL_NAME(__aarch64_have_lse_atomics)]
136
+#endif
137
cbz w(tmp0), \label
138
.endm
139
0 commit comments