Use inline assembly for Arm64EC

This commit is contained in:
Daniel Paoliello 2024-04-11 15:12:50 -07:00 committed by Amanieu d'Antras
parent b3da7c7b6f
commit ddba655db7
2 changed files with 2 additions and 3 deletions

View file

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

View file

@ -33,7 +33,8 @@
asm_const,
target_feature_11,
inline_const,
generic_arg_infer
generic_arg_infer,
asm_experimental_arch
)]
#![cfg_attr(test, feature(test, abi_vectorcall, stdarch_internal))]
#![deny(clippy::missing_inline_in_public_items)]