Skip to content

Commit 97b74a5

Browse files
authored
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/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
2 parents 1d64312 + 2d401fb commit 97b74a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_codegen_llvm/llvm_util.rs

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const X86_WHITELIST: &[(&str, Option<&str>)] = &[
145145
("bmi1", None),
146146
("bmi2", None),
147147
("cmpxchg16b", Some("cmpxchg16b_target_feature")),
148+
("f16c", Some("f16c_target_feature")),
148149
("fma", None),
149150
("fxsr", None),
150151
("lzcnt", None),

0 commit comments

Comments
 (0)