about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/tests/x86-specific.rs
diff options
context:
space:
mode:
authorsayantn <sayantn05@gmail.com>2025-02-06 00:14:16 +0530
committerAmanieu d'Antras <amanieu@gmail.com>2025-02-13 10:54:53 +0000
commit2a6953d38a99e0e626b5663f8b39f644fed5b546 (patch)
tree382366b7b1fc48b7dc71c7846046f342334be1e8 /library/stdarch/crates/std_detect/tests/x86-specific.rs
parente977f72f709b5bee366d7ee85e89e497044648c8 (diff)
downloadrust-2a6953d38a99e0e626b5663f8b39f644fed5b546.tar.gz
rust-2a6953d38a99e0e626b5663f8b39f644fed5b546.zip
Add runtime feature detection for keylocker
Diffstat (limited to 'library/stdarch/crates/std_detect/tests/x86-specific.rs')
-rw-r--r--library/stdarch/crates/std_detect/tests/x86-specific.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/stdarch/crates/std_detect/tests/x86-specific.rs b/library/stdarch/crates/std_detect/tests/x86-specific.rs
index 349bba86358..5f4441f1015 100644
--- a/library/stdarch/crates/std_detect/tests/x86-specific.rs
+++ b/library/stdarch/crates/std_detect/tests/x86-specific.rs
@@ -5,7 +5,8 @@
     avx512_target_feature,
     sha512_sm_x86,
     x86_amx_intrinsics,
-    xop_target_feature
+    xop_target_feature,
+    keylocker_x86
 )]
 
 extern crate cupid;
@@ -94,6 +95,8 @@ fn dump() {
     println!("amx-fp16: {:?}", is_x86_feature_detected!("amx-fp16"));
     println!("amx-complex: {:?}", is_x86_feature_detected!("amx-complex"));
     println!("xop: {:?}", is_x86_feature_detected!("xop"));
+    println!("kl: {:?}", is_x86_feature_detected!("kl"));
+    println!("widekl: {:?}", is_x86_feature_detected!("widekl"));
 }
 
 #[cfg(feature = "std_detect_env_override")]