about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/tests/cpu-detection.rs
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-04-23 10:10:41 +0200
committergnzlbg <gnzlbg@users.noreply.github.com>2019-05-09 13:42:20 +0200
commitd31cc0b09e14f33e888f1bb83bd88c6147ba6fcc (patch)
treec370b1c64a5102f71e1fab09dfe9bee6d4f7e52b /library/stdarch/crates/std_detect/tests/cpu-detection.rs
parent0da68477f9cad075d45c537b93b7e0c83838e605 (diff)
downloadrust-d31cc0b09e14f33e888f1bb83bd88c6147ba6fcc.tar.gz
rust-d31cc0b09e14f33e888f1bb83bd88c6147ba6fcc.zip
Add runtime feature detection for F16C
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 b2b8abb0102..0aae39e2947 100644
--- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs
+++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs
@@ -87,6 +87,7 @@ fn x86_all() {
         "avx512_vpopcntdq {:?}",
         is_x86_feature_detected!("avx512vpopcntdq")
     );
+    println!("f16c: {:?}", is_x86_feature_detected!("f16c"));
     println!("fma: {:?}", is_x86_feature_detected!("fma"));
     println!("bmi1: {:?}", is_x86_feature_detected!("bmi1"));
     println!("bmi2: {:?}", is_x86_feature_detected!("bmi2"));