Rollup merge of #60191 - gnzlbg:f16c, r=alexcrichton

Add f16c target_feature

This is requires for Intel 16-bit half-precision float intrinsics: https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=fp16&expand=1769 - see companion stdsimd PR: https://github.com/rust-lang-nursery/stdsimd/pull/737.

LLVM, Wikipedia CPUID page, and the Intel Dev Manual all call this CPUID feature "F16C", but the Intel intrinsics guide calls this "FP16C" - this is probably a bug in the intrinsics guide which we are tracking here: https://github.com/rust-lang-nursery/stdsimd/issues/738

r? @alexcrichton
This commit is contained in:
Mazdak Farrokhzad 2019-04-23 21:51:00 +02:00 committed by GitHub
commit 0353fa5b90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,7 @@ const X86_WHITELIST: &[(&str, Option<&str>)] = &[
("bmi1", None),
("bmi2", None),
("cmpxchg16b", Some("cmpxchg16b_target_feature")),
("f16c", Some("f16c_target_feature")),
("fma", None),
("fxsr", None),
("lzcnt", None),