Skip to content

Commit 052d5cc

Browse files
committed
Implement __isb for AArch64
This is necessary for the mutex implementation of libstd when there is contention. Seems like I hadn't hit this before by sheer luck.
1 parent 26d48c9 commit 052d5cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/intrinsics/llvm_aarch64.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ pub(crate) fn codegen_aarch64_llvm_intrinsic_call<'tcx>(
1616
// llvm.aarch64.neon.sqshl.v*i*
1717

1818
match intrinsic {
19+
"llvm.aarch64.isb" => {
20+
fx.bcx.ins().fence();
21+
}
22+
1923
_ if intrinsic.starts_with("llvm.aarch64.neon.abs.v") => {
2024
intrinsic_args!(fx, args => (a); intrinsic);
2125

0 commit comments

Comments
 (0)