Skip to content

Commit c133a08

Browse files
committed
rustc: Rename bmi feature to bmi1
This is what [Intel calls it][bmi1] and will [remove a special case][stdsimd] when verifying intrinsics in stdsimd. [bmi1]: https://software.intel.com/sites/landingpage/IntrinsicsGuide/#othertechs=BMI1 [stdsimd]: https://github.com/rust-lang-nursery/stdsimd/blob/bed25b2a9f3b28e6ea80de6d87842f739a2e2d58/crates/stdsimd-verify/tests/x86-intel.rs#L252-L258
1 parent bedbad6 commit c133a08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_trans/llvm_util.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const X86_WHITELIST: &'static [&'static str] = &["aes", "avx", "avx2", "avx512bw
8787
"avx512cd", "avx512dq", "avx512er",
8888
"avx512f", "avx512ifma", "avx512pf",
8989
"avx512vbmi", "avx512vl", "avx512vpopcntdq",
90-
"bmi", "bmi2", "fma", "fxsr",
90+
"bmi1", "bmi2", "fma", "fxsr",
9191
"lzcnt", "mmx", "pclmulqdq",
9292
"popcnt", "rdrand", "rdseed",
9393
"sse", "sse2", "sse3", "sse4.1",
@@ -108,6 +108,7 @@ pub fn to_llvm_feature(s: &str) -> &str {
108108
match s {
109109
"pclmulqdq" => "pclmul",
110110
"rdrand" => "rdrnd",
111+
"bmi1" => "bmi",
111112
s => s,
112113
}
113114
}

0 commit comments

Comments
 (0)