diff options
| author | Taiki Endo <te316e89@gmail.com> | 2023-03-02 03:41:28 +0900 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2023-03-01 19:57:28 +0100 |
| commit | 8f9ed37be7c9e9cf2bb9e427d1c1f5a793a0f2e8 (patch) | |
| tree | 877b429b012d5c7901e10caa4df453209e4936ac /library/stdarch/crates/std_detect/tests/cpu-detection.rs | |
| parent | 169d8d8c48fa3b801c4e36b1ab393d7cd9e00077 (diff) | |
| download | rust-8f9ed37be7c9e9cf2bb9e427d1c1f5a793a0f2e8.tar.gz rust-8f9ed37be7c9e9cf2bb9e427d1c1f5a793a0f2e8.zip | |
std_detect: Support run-time detection of fp on aarch64 Windows
According to google/cpu_features, IsProcessorFeaturePresent(PF_ARM_VFP_32_REGISTERS_AVAILABLE) returns whether fp is available. https://github.com/google/cpu_features/blob/a6bf4f9031ec601f905660b8cef82d7478b33d64/src/impl_aarch64_windows.c#L112-L113
Diffstat (limited to 'library/stdarch/crates/std_detect/tests/cpu-detection.rs')
| -rw-r--r-- | library/stdarch/crates/std_detect/tests/cpu-detection.rs | 1 |
1 files changed, 1 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 ff0b0722e69..e0ba88f0614 100644 --- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs +++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs @@ -87,6 +87,7 @@ fn aarch64_linux() { #[cfg(all(target_arch = "aarch64", target_os = "windows"))] fn aarch64_windows() { println!("asimd: {:?}", is_aarch64_feature_detected!("asimd")); + println!("fp: {:?}", is_aarch64_feature_detected!("fp")); println!("crc: {:?}", is_aarch64_feature_detected!("crc")); println!("lse: {:?}", is_aarch64_feature_detected!("lse")); println!("dotprod: {:?}", is_aarch64_feature_detected!("dotprod")); |
