From 2a6953d38a99e0e626b5663f8b39f644fed5b546 Mon Sep 17 00:00:00 2001 From: sayantn Date: Thu, 6 Feb 2025 00:14:16 +0530 Subject: Add runtime feature detection for keylocker --- library/stdarch/crates/std_detect/tests/x86-specific.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'library/stdarch/crates/std_detect/tests') 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")] -- cgit 1.4.1-3-g733a5