Skip to content

Commit

Permalink
Rollup merge of rust-lang#60191 - gnzlbg:f16c, r=alexcrichton
Browse files Browse the repository at this point in the history
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: rust-lang/stdarch#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: rust-lang/stdarch#738

r? @alexcrichton
  • Loading branch information
Centril committed Apr 23, 2019
2 parents 1d64312 + 2d401fb commit 97b74a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_codegen_llvm/llvm_util.rs
Expand Up @@ -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),
Expand Down

0 comments on commit 97b74a5

Please sign in to comment.