Skip to content

Commit c866e1f

Browse files
committed
Add missing features
1 parent 520a5a5 commit c866e1f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

compiler/rustc_target/src/target_features.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,34 @@ const X86_IMPLIED_FEATURES: &[(&str, &[&str])] = &[
414414
("aes", &["sse2"]),
415415
("avx", &["sse4.2"]),
416416
("avx2", &["avx"]),
417+
("avx512bf16", &["avx512bw"]),
418+
("avx512bitalg", &["avx512bw"]),
419+
("avx512bw", &["avx512f"]),
420+
("avx512cd", &["avx512f"]),
421+
("avx512dq", &["avx512f"]),
422+
("avx512f", &["avx2"]),
423+
("avx512fp16", &["avx512bw", "avx512vl", "avx512dq"]),
424+
("avx512vbmi", &["avx512bw"]),
425+
("avx512vbmi2", &["avx512bw"]),
426+
("avx512vl", &["avx512f"]),
427+
("avx512vnni", &["avx512f"]),
428+
("avx512vp2intersect", &["avx512f"]),
429+
("avx512vpopcntdq", &["avx512f"]),
417430
("f16c", &["avx"]),
418431
("fma", &["avx"]),
432+
("gfni", &["sse2"]),
419433
("pclmulqdq", &["sse2"]),
420434
("sha", &["sse2"]),
421435
("sse2", &["sse"]),
422436
("sse3", &["sse2"]),
423437
("sse4.1", &["ssse3"]),
424438
("sse4.2", &["sse4.1"]),
425439
("ssse3", &["sse3"]),
440+
("vaes", &["avx", "aes"]),
441+
("vpclmulqdq", &["avx", "pclmulqdq"]),
442+
("xsavec", &["xsave"]),
443+
("xsaveopt", &["xsave"]),
444+
("xsaves", &["xsave"]),
426445
// tidy-alphabetical-end
427446
];
428447

@@ -457,6 +476,12 @@ const RISCV_IMPLIED_FEATURES: &[(&str, &[&str])] = &[
457476
// tidy-alphabetical-end
458477
];
459478

479+
const WASM_IMPLIED_FEATURES: &[(&str, &[&str])] = &[
480+
// tidy-alphabetical-start
481+
("relaxed-simd", &["simd128"]),
482+
// tidy-alphabetical-end
483+
];
484+
460485
/// When rustdoc is running, provide a list of all known features so that all their respective
461486
/// primitives may be documented.
462487
///
@@ -509,6 +534,7 @@ impl super::spec::Target {
509534
"aarch4" => AARCH64_IMPLIED_FEATURES,
510535
"riscv32" | "riscv64" => RISCV_IMPLIED_FEATURES,
511536
"x86" | "x86_64" => X86_IMPLIED_FEATURES,
537+
"wasm32" | "wasm64" => WASM_IMPLIED_FEATURES,
512538
_ => &[],
513539
}
514540
}

0 commit comments

Comments
 (0)