Skip to content

Commit e817b50

Browse files
committed
Update aarch64 runtime feature detection tests
1 parent 3be9261 commit e817b50

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

library/std/tests/run-time-detect.rs

+36-2
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,56 @@
1616
fn arm_linux() {
1717
println!("neon: {}", is_arm_feature_detected!("neon"));
1818
println!("pmull: {}", is_arm_feature_detected!("pmull"));
19+
println!("crypto: {}", is_arm_feature_detected!("crypto"));
20+
println!("crc: {}", is_arm_feature_detected!("crc"));
21+
println!("aes: {}", is_arm_feature_detected!("aes"));
22+
println!("sha2: {}", is_arm_feature_detected!("sha2"));
1923
}
2024

2125
#[test]
2226
#[cfg(all(target_arch = "aarch64", any(target_os = "linux", target_os = "android")))]
2327
fn aarch64_linux() {
24-
println!("fp: {}", is_aarch64_feature_detected!("fp"));
25-
println!("fp16: {}", is_aarch64_feature_detected!("fp16"));
2628
println!("neon: {}", is_aarch64_feature_detected!("neon"));
2729
println!("asimd: {}", is_aarch64_feature_detected!("asimd"));
30+
println!("pmull: {}", is_aarch64_feature_detected!("pmull"));
31+
println!("fp: {}", is_aarch64_feature_detected!("fp"));
32+
println!("fp16: {}", is_aarch64_feature_detected!("fp16"));
2833
println!("sve: {}", is_aarch64_feature_detected!("sve"));
2934
println!("crc: {}", is_aarch64_feature_detected!("crc"));
3035
println!("lse: {}", is_aarch64_feature_detected!("lse"));
36+
println!("lse2: {}", is_aarch64_feature_detected!("lse2"));
3137
println!("rdm: {}", is_aarch64_feature_detected!("rdm"));
3238
println!("rcpc: {}", is_aarch64_feature_detected!("rcpc"));
39+
println!("rcpc2: {}", is_aarch64_feature_detected!("rcpc2"));
3340
println!("dotprod: {}", is_aarch64_feature_detected!("dotprod"));
3441
println!("tme: {}", is_aarch64_feature_detected!("tme"));
42+
println!("fhm: {}", is_aarch64_feature_detected!("fhm"));
43+
println!("dit: {}", is_aarch64_feature_detected!("dit"));
44+
println!("flagm: {}", is_aarch64_feature_detected!("flagm"));
45+
println!("ssbs: {}", is_aarch64_feature_detected!("ssbs"));
46+
println!("sb: {}", is_aarch64_feature_detected!("sb"));
47+
println!("pauth: {}", is_aarch64_feature_detected!("pauth"));
48+
println!("dpb: {}", is_aarch64_feature_detected!("dpb"));
49+
println!("dpb2: {}", is_aarch64_feature_detected!("dpb2"));
50+
println!("sve2: {}", is_aarch64_feature_detected!("sve2"));
51+
println!("sve2-aes: {}", is_aarch64_feature_detected!("sve2-aes"));
52+
println!("sve2-sm4: {}", is_aarch64_feature_detected!("sve2-sm4"));
53+
println!("sve2-sha3: {}", is_aarch64_feature_detected!("sve2-sha3"));
54+
println!("sve2-bitperm: {}", is_aarch64_feature_detected!("sve2-bitperm"));
55+
println!("frintts: {}", is_aarch64_feature_detected!("frintts"));
56+
println!("i8mm: {}", is_aarch64_feature_detected!("i8mm"));
57+
println!("f32mm: {}", is_aarch64_feature_detected!("f32mm"));
58+
println!("f64mm: {}", is_aarch64_feature_detected!("f64mm"));
59+
println!("bf16: {}", is_aarch64_feature_detected!("bf16"));
60+
println!("rand: {}", is_aarch64_feature_detected!("rand"));
61+
println!("bti: {}", is_aarch64_feature_detected!("bti"));
62+
println!("mte: {}", is_aarch64_feature_detected!("mte"));
63+
println!("jsconv: {}", is_aarch64_feature_detected!("jsconv"));
64+
println!("fcma: {}", is_aarch64_feature_detected!("fcma"));
65+
println!("aes: {}", is_aarch64_feature_detected!("aes"));
66+
println!("sha2: {}", is_aarch64_feature_detected!("sha2"));
67+
println!("sha3: {}", is_aarch64_feature_detected!("sha3"));
68+
println!("sm4: {}", is_aarch64_feature_detected!("sm4"));
3569
}
3670

3771
#[test]

0 commit comments

Comments
 (0)