Skip to content

Commit 483bec7

Browse files
committed
Add target_features for the bit manipulation instruction sets: BMI 1.0, BMI 2.0, and TBM.
1 parent 10cbc37 commit 483bec7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/etc/platform-intrinsics/generator.py

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def platform_prefix(self):
3232

3333
class IntrinsicSet(object):
3434
def __init__(self, platform, json):
35-
3635
self._llvm_prefix = json['llvm_prefix']
3736
self._type_info = json['number_info']
3837
self._intrinsics = json['intrinsics']

src/librustc_driver/target_features.rs

+3
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ const ARM_WHITELIST: &'static [&'static str] = &[
3030
const X86_WHITELIST: &'static [&'static str] = &[
3131
"avx\0",
3232
"avx2\0",
33+
"bmi\0",
34+
"bmi2\0",
3335
"sse\0",
3436
"sse2\0",
3537
"sse3\0",
3638
"sse4.1\0",
3739
"sse4.2\0",
3840
"ssse3\0",
41+
"tbm\0",
3942
];
4043

4144
/// Add `target_feature = "..."` cfgs for a variety of platform

0 commit comments

Comments
 (0)