about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/tests
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2023-03-02 03:21:34 +0900
committerAmanieu d'Antras <amanieu@gmail.com>2023-03-01 19:58:15 +0100
commitba58f917696d4ca2a18ab01177b19c35c3bc8b91 (patch)
tree2a409124b80075a4d93556c6c23dfef087eede14 /library/stdarch/crates/std_detect/tests
parent8f9ed37be7c9e9cf2bb9e427d1c1f5a793a0f2e8 (diff)
downloadrust-ba58f917696d4ca2a18ab01177b19c35c3bc8b91.tar.gz
rust-ba58f917696d4ca2a18ab01177b19c35c3bc8b91.zip
std_detect: Support run-time detection of crc/aes/sha2/crypto on arm FreeBSD
Diffstat (limited to 'library/stdarch/crates/std_detect/tests')
-rw-r--r--library/stdarch/crates/std_detect/tests/cpu-detection.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/library/stdarch/crates/std_detect/tests/cpu-detection.rs b/library/stdarch/crates/std_detect/tests/cpu-detection.rs
index e0ba88f0614..eb3a3e40940 100644
--- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs
+++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs
@@ -20,8 +20,11 @@ fn all() {
 }
 
 #[test]
-#[cfg(all(target_arch = "arm", any(target_os = "linux", target_os = "android")))]
-fn arm_linux() {
+#[cfg(all(
+    target_arch = "arm",
+    any(target_os = "linux", target_os = "android", target_os = "freebsd"),
+))]
+fn arm_linux_or_freebsd() {
     println!("neon: {}", is_arm_feature_detected!("neon"));
     println!("pmull: {}", is_arm_feature_detected!("pmull"));
     println!("crc: {}", is_arm_feature_detected!("crc"));