about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/tests/cpu-detection.rs
diff options
context:
space:
mode:
authorDaniel Paoliello <danpao@microsoft.com>2023-11-30 15:00:25 -0800
committerAmanieu d'Antras <amanieu@gmail.com>2024-03-13 22:30:36 +0000
commita00a70eacb5ab39d941fe1de0c011dc14046cbd0 (patch)
tree65e086672b8506e26f26553f5211f17ac598bbaa /library/stdarch/crates/std_detect/tests/cpu-detection.rs
parentd4c77d32283028c59ea451a8bbebd16aa69bab4f (diff)
downloadrust-a00a70eacb5ab39d941fe1de0c011dc14046cbd0.tar.gz
rust-a00a70eacb5ab39d941fe1de0c011dc14046cbd0.zip
arm64ec
Diffstat (limited to 'library/stdarch/crates/std_detect/tests/cpu-detection.rs')
-rw-r--r--library/stdarch/crates/std_detect/tests/cpu-detection.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/stdarch/crates/std_detect/tests/cpu-detection.rs b/library/stdarch/crates/std_detect/tests/cpu-detection.rs
index 1053de3a826..fcad846fbd9 100644
--- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs
+++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs
@@ -9,6 +9,7 @@
     any(
         target_arch = "arm",
         target_arch = "aarch64",
+        target_arch = "arm64ec",
         target_arch = "x86",
         target_arch = "x86_64",
         target_arch = "powerpc",
@@ -101,7 +102,10 @@ fn aarch64_linux() {
 }
 
 #[test]
-#[cfg(all(target_arch = "aarch64", target_os = "windows"))]
+#[cfg(all(
+    any(target_arch = "aarch64", target_arch = "arm64ec"),
+    target_os = "windows"
+))]
 fn aarch64_windows() {
     println!("asimd: {:?}", is_aarch64_feature_detected!("asimd"));
     println!("fp: {:?}", is_aarch64_feature_detected!("fp"));