diff options
| author | Taiki Endo <te316e89@gmail.com> | 2023-01-26 00:27:21 +0900 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2023-01-26 23:33:52 +0000 |
| commit | 674fd58f608a0bf4f551c82fad4a28e8297c5feb (patch) | |
| tree | e1ffc373b6e8285f5e17ad3542b05e639ac25386 /library/stdarch/crates/std_detect/tests/cpu-detection.rs | |
| parent | e706a13add588039d97fdea903a7e89f6d22b063 (diff) | |
| download | rust-674fd58f608a0bf4f551c82fad4a28e8297c5feb.tar.gz rust-674fd58f608a0bf4f551c82fad4a28e8297c5feb.zip | |
std_detect: Move aarch64 freebsd test to tests/cpu-detection.rs
Diffstat (limited to 'library/stdarch/crates/std_detect/tests/cpu-detection.rs')
| -rw-r--r-- | library/stdarch/crates/std_detect/tests/cpu-detection.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/library/stdarch/crates/std_detect/tests/cpu-detection.rs b/library/stdarch/crates/std_detect/tests/cpu-detection.rs index f1232e1145c..e090a205c44 100644 --- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs +++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs @@ -98,6 +98,26 @@ fn aarch64_windows() { } #[test] +#[cfg(all(target_arch = "aarch64", target_os = "freebsd"))] +fn aarch64_freebsd() { + println!("asimd: {:?}", is_aarch64_feature_detected!("asimd")); + println!("pmull: {:?}", is_aarch64_feature_detected!("pmull")); + println!("fp: {:?}", is_aarch64_feature_detected!("fp")); + println!("fp16: {:?}", is_aarch64_feature_detected!("fp16")); + println!("sve: {:?}", is_aarch64_feature_detected!("sve")); + println!("crc: {:?}", is_aarch64_feature_detected!("crc")); + println!("lse: {:?}", is_aarch64_feature_detected!("lse")); + println!("rdm: {:?}", is_aarch64_feature_detected!("rdm")); + println!("rcpc: {:?}", is_aarch64_feature_detected!("rcpc")); + println!("dotprod: {:?}", is_aarch64_feature_detected!("dotprod")); + println!("tme: {:?}", is_aarch64_feature_detected!("tme")); + println!("paca: {:?}", is_aarch64_feature_detected!("paca")); + println!("pacg: {:?}", is_aarch64_feature_detected!("pacg")); + println!("aes: {:?}", is_aarch64_feature_detected!("aes")); + println!("sha2: {:?}", is_aarch64_feature_detected!("sha2")); +} + +#[test] #[cfg(all(target_arch = "powerpc", target_os = "linux"))] fn powerpc_linux() { println!("altivec: {}", is_powerpc_feature_detected!("altivec")); |
