diff options
| author | sayantn <sayantn05@gmail.com> | 2025-02-06 02:53:04 +0530 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2025-02-07 22:09:48 +0000 |
| commit | efb7cf80b9b40c8971482988f73625f318da47b9 (patch) | |
| tree | 38345bc14338e899a9ed60aa8e7db28f01ac73d3 /library/stdarch/crates/std_detect/tests/x86-specific.rs | |
| parent | e6ea3dc21c99894e9317f88f1d771b68038bb911 (diff) | |
| download | rust-efb7cf80b9b40c8971482988f73625f318da47b9.tar.gz rust-efb7cf80b9b40c8971482988f73625f318da47b9.zip | |
Move all x86 std_detect tests to `x86-specific.rs` to reduce duplication
Diffstat (limited to 'library/stdarch/crates/std_detect/tests/x86-specific.rs')
| -rw-r--r-- | library/stdarch/crates/std_detect/tests/x86-specific.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/library/stdarch/crates/std_detect/tests/x86-specific.rs b/library/stdarch/crates/std_detect/tests/x86-specific.rs index 60b6756f866..349bba86358 100644 --- a/library/stdarch/crates/std_detect/tests/x86-specific.rs +++ b/library/stdarch/crates/std_detect/tests/x86-specific.rs @@ -185,3 +185,14 @@ fn compare_with_cupid() { assert_eq!(is_x86_feature_detected!("rtm"), information.rtm(),); assert_eq!(is_x86_feature_detected!("movbe"), information.movbe(),); } + +#[test] +#[allow(deprecated)] +fn x86_deprecated() { + println!("avx512gfni {:?}", is_x86_feature_detected!("avx512gfni")); + println!("avx512vaes {:?}", is_x86_feature_detected!("avx512vaes")); + println!( + "avx512vpclmulqdq {:?}", + is_x86_feature_detected!("avx512vpclmulqdq") + ); +} |
