Skip to content

Commit 4b9a292

Browse files
committed
add avx512fp16 to x86 target features
1 parent e51e98d commit 4b9a292

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/rustc_codegen_gcc/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ pub fn target_features(sess: &Session, allow_unstable: bool, target_info: &Locke
408408
.filter(|_feature| {
409409
target_info.cpu_supports(_feature)
410410
/*
411-
adx, aes, avx, avx2, avx512bf16, avx512bitalg, avx512bw, avx512cd, avx512dq, avx512er, avx512f, avx512ifma,
411+
adx, aes, avx, avx2, avx512bf16, avx512bitalg, avx512bw, avx512cd, avx512dq, avx512er, avx512f, avx512fp16, avx512ifma,
412412
avx512pf, avx512vbmi, avx512vbmi2, avx512vl, avx512vnni, avx512vp2intersect, avx512vpopcntdq,
413413
bmi1, bmi2, cmpxchg16b, ermsb, f16c, fma, fxsr, gfni, lzcnt, movbe, pclmulqdq, popcnt, rdrand, rdseed, rtm,
414414
sha, sse, sse2, sse3, sse4.1, sse4.2, sse4a, ssse3, tbm, vaes, vpclmulqdq, xsave, xsavec, xsaveopt, xsaves

compiler/rustc_target/src/target_features.rs

+1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ const X86_ALLOWED_FEATURES: &[(&str, Stability)] = &[
201201
("avx512dq", Unstable(sym::avx512_target_feature)),
202202
("avx512er", Unstable(sym::avx512_target_feature)),
203203
("avx512f", Unstable(sym::avx512_target_feature)),
204+
("avx512fp16", Unstable(sym::avx512_target_feature)),
204205
("avx512ifma", Unstable(sym::avx512_target_feature)),
205206
("avx512pf", Unstable(sym::avx512_target_feature)),
206207
("avx512vbmi", Unstable(sym::avx512_target_feature)),

0 commit comments

Comments
 (0)