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-01-26 22:01:33 +0900
committerAmanieu d'Antras <amanieu@gmail.com>2023-01-26 23:33:52 +0000
commita36f5bd7c897e29f5f41bbff20e7d2aa6aa9810d (patch)
treec17c7b6b61c0181c2c672226d4a4e113f06763c1 /library/stdarch/crates/std_detect/tests
parentd3bb923c82da9df128a6faad659bdee9e2008821 (diff)
downloadrust-a36f5bd7c897e29f5f41bbff20e7d2aa6aa9810d.tar.gz
rust-a36f5bd7c897e29f5f41bbff20e7d2aa6aa9810d.zip
std_detect: Support run-time detection on aarch64 OpenBSD
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 e090a205c44..ec0875a355e 100644
--- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs
+++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs
@@ -98,8 +98,11 @@ fn aarch64_windows() {
 }
 
 #[test]
-#[cfg(all(target_arch = "aarch64", target_os = "freebsd"))]
-fn aarch64_freebsd() {
+#[cfg(all(
+    target_arch = "aarch64",
+    any(target_os = "freebsd", target_os = "openbsd")
+))]
+fn aarch64_bsd() {
     println!("asimd: {:?}", is_aarch64_feature_detected!("asimd"));
     println!("pmull: {:?}", is_aarch64_feature_detected!("pmull"));
     println!("fp: {:?}", is_aarch64_feature_detected!("fp"));