about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/tests/cpu-detection.rs
diff options
context:
space:
mode:
authorKajetan Puchalski <kajetan.puchalski@arm.com>2024-10-16 13:47:47 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2024-10-27 02:59:49 +0800
commit168479a4a5e86a770750c1171e764a5a51b2e2de (patch)
tree7e1ab05e7e0eae2d1871629becef6f9f38092b8d /library/stdarch/crates/std_detect/tests/cpu-detection.rs
parent49e52f36578d06cf0888bf1b9c05e284f9a4f637 (diff)
downloadrust-168479a4a5e86a770750c1171e764a5a51b2e2de.tar.gz
rust-168479a4a5e86a770750c1171e764a5a51b2e2de.zip
std_detect: Add pauth-lr aarch64 target feature
Add feature detection for aarch64 FEAT_PAuth_LR.
There is currently no Linux cpuinfo support so the OS-specific lines are
commented out.
Diffstat (limited to 'library/stdarch/crates/std_detect/tests/cpu-detection.rs')
-rw-r--r--library/stdarch/crates/std_detect/tests/cpu-detection.rs1
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 dd38493e7ca..6ed612a5960 100644
--- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs
+++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs
@@ -83,6 +83,7 @@ fn aarch64_linux() {
     println!("sb: {}", is_aarch64_feature_detected!("sb"));
     println!("paca: {}", is_aarch64_feature_detected!("paca"));
     println!("pacg: {}", is_aarch64_feature_detected!("pacg"));
+    // println!("pauth-lr: {}", is_aarch64_feature_detected!("pauth-lr"));
     println!("dpb: {}", is_aarch64_feature_detected!("dpb"));
     println!("dpb2: {}", is_aarch64_feature_detected!("dpb2"));
     println!("sve-b16b16: {}", is_aarch64_feature_detected!("sve-b16b16"));