From 23e51e4e9809aa908c7b55f32b80fccf7d135d2a Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 13 Feb 2019 18:29:48 +0100 Subject: [PATCH] acle/hints: most hints require 'v6' rather than 'v6k' addresses /~https://github.com/rust-lang-nursery/stdsimd/pull/557#discussion_r255251241 --- crates/core_arch/src/acle/hints.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/core_arch/src/acle/hints.rs b/crates/core_arch/src/acle/hints.rs index 6f9a2dfb21..6f33fe3419 100644 --- a/crates/core_arch/src/acle/hints.rs +++ b/crates/core_arch/src/acle/hints.rs @@ -9,7 +9,7 @@ /// low-power state until one of a number of asynchronous events occurs. // Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M // LLVM says "instruction requires: armv6k" -#[cfg(any(target_feature = "v6k", target_arch = "aarch64"))] +#[cfg(any(target_feature = "v6", target_arch = "aarch64"))] #[inline(always)] pub unsafe fn __wfi() { hint(HINT_WFI); @@ -22,7 +22,7 @@ pub unsafe fn __wfi() { /// another processor. // Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M // LLVM says "instruction requires: armv6k" -#[cfg(any(target_feature = "v6k", target_arch = "aarch64"))] +#[cfg(any(target_feature = "v6", target_arch = "aarch64"))] #[inline(always)] pub unsafe fn __wfe() { hint(HINT_WFE); @@ -34,7 +34,7 @@ pub unsafe fn __wfe() { /// system. It is a NOP on a uniprocessor system. // Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M, 7-M // LLVM says "instruction requires: armv6k" -#[cfg(any(target_feature = "v6k", target_arch = "aarch64"))] +#[cfg(any(target_feature = "v6", target_arch = "aarch64"))] #[inline(always)] pub unsafe fn __sev() { hint(HINT_SEV); @@ -59,7 +59,7 @@ pub unsafe fn __sevl() { /// improve overall system performance. // Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M // LLVM says "instruction requires: armv6k" -#[cfg(any(target_feature = "v6k", target_arch = "aarch64"))] +#[cfg(any(target_feature = "v6", target_arch = "aarch64"))] #[inline(always)] pub unsafe fn __yield() { hint(HINT_YIELD);