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>2024-09-15 20:10:08 +0900
committerAmanieu d'Antras <amanieu@gmail.com>2024-09-18 05:07:32 -0400
commit720973b1b49772bed937975f56299c47494f19a6 (patch)
tree3488e17093f22be639548278003a47e775b08a56 /library/stdarch/crates/std_detect/tests
parent8a511191a0cf9290270e1a0f25bb0c26f9a56077 (diff)
downloadrust-720973b1b49772bed937975f56299c47494f19a6.tar.gz
rust-720973b1b49772bed937975f56299c47494f19a6.zip
std_detect: Use elf_aux_info on 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 53fbf6d8c1d..5f4144c1973 100644
--- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs
+++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs
@@ -228,8 +228,11 @@ fn powerpc_linux() {
 }
 
 #[test]
-#[cfg(all(target_arch = "powerpc64", target_os = "linux"))]
-fn powerpc64_linux() {
+#[cfg(all(
+    target_arch = "powerpc64",
+    any(target_os = "linux", target_os = "freebsd"),
+))]
+fn powerpc64_linux_or_freebsd() {
     println!("altivec: {}", is_powerpc64_feature_detected!("altivec"));
     println!("vsx: {}", is_powerpc64_feature_detected!("vsx"));
     println!("power8: {}", is_powerpc64_feature_detected!("power8"));