diff options
| author | sayantn <sayantn05@gmail.com> | 2025-04-01 23:54:31 +0530 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2025-04-07 21:29:15 +0000 |
| commit | fbd13bd08c45fd61ac672e533503ed57d0436261 (patch) | |
| tree | 6d8fc6b087eddc6700619828cbbf2deedcaae8fb /library/stdarch/crates/std_detect/tests/x86-specific.rs | |
| parent | 97606212ea304651723311e89f47fe022de13480 (diff) | |
| download | rust-fbd13bd08c45fd61ac672e533503ed57d0436261.tar.gz rust-fbd13bd08c45fd61ac672e533503ed57d0436261.zip | |
Add feature detection for new amx variants and movrs
Diffstat (limited to 'library/stdarch/crates/std_detect/tests/x86-specific.rs')
| -rw-r--r-- | library/stdarch/crates/std_detect/tests/x86-specific.rs | 12 |
1 files changed, 11 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 5f4441f1015..f41f400c100 100644 --- a/library/stdarch/crates/std_detect/tests/x86-specific.rs +++ b/library/stdarch/crates/std_detect/tests/x86-specific.rs @@ -6,7 +6,8 @@ sha512_sm_x86, x86_amx_intrinsics, xop_target_feature, - keylocker_x86 + keylocker_x86, + movrs_target_feature )] extern crate cupid; @@ -97,6 +98,15 @@ fn dump() { println!("xop: {:?}", is_x86_feature_detected!("xop")); println!("kl: {:?}", is_x86_feature_detected!("kl")); println!("widekl: {:?}", is_x86_feature_detected!("widekl")); + println!("movrs: {:?}", is_x86_feature_detected!("movrs")); + println!("amx-fp8: {:?}", is_x86_feature_detected!("amx-fp8")); + println!( + "amx-transpose: {:?}", + is_x86_feature_detected!("amx-transpose") + ); + println!("amx-tf32: {:?}", is_x86_feature_detected!("amx-tf32")); + println!("amx-avx512: {:?}", is_x86_feature_detected!("amx-avx512")); + println!("amx-movrs: {:?}", is_x86_feature_detected!("amx-movrs")); } #[cfg(feature = "std_detect_env_override")] |
