]> git.lizzy.rs Git - rust.git/commitdiff
Add target_features for the bit manipulation instruction sets: BMI 1.0, BMI 2.0,...
authorgnzlbg <gonzalobg88@gmail.com>
Wed, 22 Jun 2016 14:36:48 +0000 (16:36 +0200)
committergnzlbg <gonzalobg88@gmail.com>
Wed, 22 Jun 2016 15:11:17 +0000 (17:11 +0200)
src/etc/platform-intrinsics/generator.py
src/librustc_driver/target_features.rs

index d2f40f167142904d3f947d19e6f89981907bb274..a4a91170efb3b5334e9f874a48240059a7f7d903 100644 (file)
@@ -32,7 +32,6 @@ class PlatformInfo(object):
 
 class IntrinsicSet(object):
     def __init__(self, platform, json):
-        
         self._llvm_prefix = json['llvm_prefix']
         self._type_info = json['number_info']
         self._intrinsics = json['intrinsics']
index fad0af19a127037ad0861b1842860cecb2eb621b..f2020303089d2e3d52fef55df7ca4d3986b4e98a 100644 (file)
 const X86_WHITELIST: &'static [&'static str] = &[
     "avx\0",
     "avx2\0",
+    "bmi\0",
+    "bmi2\0",
     "sse\0",
     "sse2\0",
     "sse3\0",
     "sse4.1\0",
     "sse4.2\0",
     "ssse3\0",
+    "tbm\0",
 ];
 
 /// Add `target_feature = "..."` cfgs for a variety of platform