Skip to content
Permalink
Browse files

Rollup merge of rust-lang#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: rust-lang-nursery/stdsimd#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-nursery/stdsimd#738

r? @alexcrichton
  • Loading branch information...
Centril committed Apr 23, 2019
2 parents 1d64312 + 2d401fb commit 97b74a5db082c19ca3badf6da230b64ad24fe969
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/librustc_codegen_llvm/llvm_util.rs
@@ -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),

0 comments on commit 97b74a5

Please sign in to comment.
You can’t perform that action at this time.