diff options
| author | Taiki Endo <te316e89@gmail.com> | 2023-01-24 04:02:25 +0900 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2023-01-23 22:26:08 +0000 |
| commit | e706a13add588039d97fdea903a7e89f6d22b063 (patch) | |
| tree | cc3a28df00bebc570691c3211ddaa94bbc49bf56 /library/stdarch/crates/std_detect/tests/cpu-detection.rs | |
| parent | 505d4e8d48397fca4491ab52afccf33b0b037fa2 (diff) | |
| download | rust-e706a13add588039d97fdea903a7e89f6d22b063.tar.gz rust-e706a13add588039d97fdea903a7e89f6d22b063.zip | |
std_detect: Add test for feature detection on aarch64 Windows
Diffstat (limited to 'library/stdarch/crates/std_detect/tests/cpu-detection.rs')
| -rw-r--r-- | library/stdarch/crates/std_detect/tests/cpu-detection.rs | 14 |
1 files changed, 14 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 b5cabd5040f..f1232e1145c 100644 --- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs +++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs @@ -84,6 +84,20 @@ fn aarch64_linux() { } #[test] +#[cfg(all(target_arch = "aarch64", target_os = "windows"))] +fn aarch64_windows() { + println!("asimd: {:?}", is_aarch64_feature_detected!("asimd")); + println!("crc: {:?}", is_aarch64_feature_detected!("crc")); + println!("lse: {:?}", is_aarch64_feature_detected!("lse")); + println!("dotprod: {:?}", is_aarch64_feature_detected!("dotprod")); + println!("jsconv: {:?}", is_aarch64_feature_detected!("jsconv")); + println!("rcpc: {:?}", is_aarch64_feature_detected!("rcpc")); + println!("aes: {:?}", is_aarch64_feature_detected!("aes")); + println!("pmull: {:?}", is_aarch64_feature_detected!("pmull")); + 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")); |
