Skip to content

Commit f325623

Browse files
taiki-eAmanieu
authored andcommitted
std_detect: Add test for feature detection on aarch64 Windows
1 parent d5be713 commit f325623

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

crates/std_detect/tests/cpu-detection.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,20 @@ fn aarch64_linux() {
8383
println!("sm4: {}", is_aarch64_feature_detected!("sm4"));
8484
}
8585

86+
#[test]
87+
#[cfg(all(target_arch = "aarch64", target_os = "windows"))]
88+
fn aarch64_windows() {
89+
println!("asimd: {:?}", is_aarch64_feature_detected!("asimd"));
90+
println!("crc: {:?}", is_aarch64_feature_detected!("crc"));
91+
println!("lse: {:?}", is_aarch64_feature_detected!("lse"));
92+
println!("dotprod: {:?}", is_aarch64_feature_detected!("dotprod"));
93+
println!("jsconv: {:?}", is_aarch64_feature_detected!("jsconv"));
94+
println!("rcpc: {:?}", is_aarch64_feature_detected!("rcpc"));
95+
println!("aes: {:?}", is_aarch64_feature_detected!("aes"));
96+
println!("pmull: {:?}", is_aarch64_feature_detected!("pmull"));
97+
println!("sha2: {:?}", is_aarch64_feature_detected!("sha2"));
98+
}
99+
86100
#[test]
87101
#[cfg(all(target_arch = "powerpc", target_os = "linux"))]
88102
fn powerpc_linux() {

0 commit comments

Comments
 (0)