diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-02-26 15:58:16 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-02-26 15:58:16 -0800 |
| commit | c133a082a87ac2cb520688e33ed17aa794cab368 (patch) | |
| tree | 339024b65cde3763f165067753da4d097da039e0 | |
| parent | bedbad61195d2eae69b43eca49c6d3e2aee8f208 (diff) | |
| download | rust-c133a082a87ac2cb520688e33ed17aa794cab368.tar.gz rust-c133a082a87ac2cb520688e33ed17aa794cab368.zip | |
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
| -rw-r--r-- | src/librustc_trans/llvm_util.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_trans/llvm_util.rs b/src/librustc_trans/llvm_util.rs index 6271dcdfb24..00ac9d80245 100644 --- a/src/librustc_trans/llvm_util.rs +++ b/src/librustc_trans/llvm_util.rs @@ -87,7 +87,7 @@ const X86_WHITELIST: &'static [&'static str] = &["aes", "avx", "avx2", "avx512bw "avx512cd", "avx512dq", "avx512er", "avx512f", "avx512ifma", "avx512pf", "avx512vbmi", "avx512vl", "avx512vpopcntdq", - "bmi", "bmi2", "fma", "fxsr", + "bmi1", "bmi2", "fma", "fxsr", "lzcnt", "mmx", "pclmulqdq", "popcnt", "rdrand", "rdseed", "sse", "sse2", "sse3", "sse4.1", @@ -108,6 +108,7 @@ pub fn to_llvm_feature(s: &str) -> &str { match s { "pclmulqdq" => "pclmul", "rdrand" => "rdrnd", + "bmi1" => "bmi", s => s, } } |
