Skip to content

Commit 7df81ba

Browse files
dpaolielloAmanieu
authored andcommitted
Use inline assembly for Arm64EC
1 parent 24068c7 commit 7df81ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/core_arch/src/arm_shared/hints.rs

-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ pub unsafe fn __yield() {
101101
/// those that do, it is unspecified whether this intrinsic generates it or
102102
/// another instruction. It is not guaranteed that inserting this instruction
103103
/// will increase execution time.
104-
// Inline ASM is not support on ARM64EC yet.
105-
#[cfg(not(target_arch = "arm64ec"))]
106104
#[inline(always)]
107105
#[unstable(feature = "stdarch_arm_hints", issue = "117218")]
108106
pub unsafe fn __nop() {

crates/core_arch/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
asm_const,
3434
target_feature_11,
3535
inline_const,
36-
generic_arg_infer
36+
generic_arg_infer,
37+
asm_experimental_arch
3738
)]
3839
#![cfg_attr(test, feature(test, abi_vectorcall, stdarch_internal))]
3940
#![deny(clippy::missing_inline_in_public_items)]

0 commit comments

Comments
 (0)