about summary refs log tree commit diff
path: root/library/std_detect/tests/cpu-detection.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-07-31 13:12:47 +0200
committerGitHub <noreply@github.com>2025-07-31 13:12:47 +0200
commit97e2806caae1142585bccadd9380bb304d0605b2 (patch)
treedd4a82591b30fe6d2555f2dafe519bac22f5d0e1 /library/std_detect/tests/cpu-detection.rs
parentfebd8cdd4457f8ff67b7dd510ae99392f108af1a (diff)
parentc51e5ce452c96886bab78a8e736c750dd9e79fbd (diff)
downloadrust-97e2806caae1142585bccadd9380bb304d0605b2.tar.gz
rust-97e2806caae1142585bccadd9380bb304d0605b2.zip
Rollup merge of #144721 - a4lg:riscv-hwprobe-linux-6.16, r=Amanieu
`std_detect`: Linux 6.16 support for RISC-V

It adds feature detection of 1 extension (new in `std_detect`).

New RISC-V Extension:

1.  "Zabha"
Diffstat (limited to 'library/std_detect/tests/cpu-detection.rs')
-rw-r--r--library/std_detect/tests/cpu-detection.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std_detect/tests/cpu-detection.rs b/library/std_detect/tests/cpu-detection.rs
index 5ad32d83237..0c4fa57f2b4 100644
--- a/library/std_detect/tests/cpu-detection.rs
+++ b/library/std_detect/tests/cpu-detection.rs
@@ -242,6 +242,7 @@ fn riscv_linux() {
     println!("zalrsc: {}", is_riscv_feature_detected!("zalrsc"));
     println!("zaamo: {}", is_riscv_feature_detected!("zaamo"));
     println!("zawrs: {}", is_riscv_feature_detected!("zawrs"));
+    println!("zabha: {}", is_riscv_feature_detected!("zabha"));
     println!("zacas: {}", is_riscv_feature_detected!("zacas"));
     println!("zam: {}", is_riscv_feature_detected!("zam"));
     println!("ztso: {}", is_riscv_feature_detected!("ztso"));