1
Fork 0

Allow actual AVX512-related feature names in the case of some misleading aliases

This commit is contained in:
Caleb Zulawski 2022-10-29 23:36:47 -04:00
parent cd128880b1
commit d7152f8eec
3 changed files with 10 additions and 4 deletions

View file

@ -163,6 +163,9 @@ pub fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> SmallVec<[&'a str; 2]
("x86", "rdrand") => smallvec!["rdrnd"],
("x86", "bmi1") => smallvec!["bmi"],
("x86", "cmpxchg16b") => smallvec!["cx16"],
// FIXME: These aliases are misleading, and should be removed before avx512_target_feature is
// stabilized. For now, they must be kept at a minimum because std::arch uses them.
// rust#100752
("x86", "avx512vaes") => smallvec!["vaes"],
("x86", "avx512gfni") => smallvec!["gfni"],
("x86", "avx512vpclmulqdq") => smallvec!["vpclmulqdq"],