Skip to content

builtins: repair the Darwin build for ARM64 #9310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions compiler-rt/lib/builtins/aarch64/lse.S
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,13 @@ HIDDEN(SYMBOL_NAME(__aarch64_have_lse_atomics))

// Macro for branch to label if no LSE available
.macro JUMP_IF_NOT_LSE label
#if defined(__APPLE__)
adrp x(tmp0), SYMBOL_NAME(__aarch64_have_lse_atomics)@page
ldrb w(tmp0), [x(tmp0), SYMBOL_NAME(__aarch64_have_lse_atomics)@pageoff]
#else
adrp x(tmp0), SYMBOL_NAME(__aarch64_have_lse_atomics)
ldrb w(tmp0), [x(tmp0), :lo12:SYMBOL_NAME(__aarch64_have_lse_atomics)]
#endif
cbz w(tmp0), \label
.endm

Expand Down