about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-12-12 08:37:56 -0800
committerAlex Crichton <alex@alexcrichton.com>2018-12-12 08:38:42 -0800
commit78f20de075501126949c545a310fb921ab7b4c59 (patch)
tree23b9f62394e6bee032480014726875dcac8d5a1d /src/librustc_codegen_llvm
parentbd47d6825bf4090517549d33cfef10d3300b4a75 (diff)
downloadrust-78f20de075501126949c545a310fb921ab7b4c59.tar.gz
rust-78f20de075501126949c545a310fb921ab7b4c59.zip
x86: Add the `adx` target feature to whitelist
Requested in rust-lang-nursery/stdsimd#322 this is hopefully the first
step!
Diffstat (limited to 'src/librustc_codegen_llvm')
-rw-r--r--src/librustc_codegen_llvm/llvm_util.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/llvm_util.rs b/src/librustc_codegen_llvm/llvm_util.rs
index fdb6373bea1..12109ae1662 100644
--- a/src/librustc_codegen_llvm/llvm_util.rs
+++ b/src/librustc_codegen_llvm/llvm_util.rs
@@ -124,6 +124,7 @@ const AARCH64_WHITELIST: &[(&str, Option<&str>)] = &[
 ];
 
 const X86_WHITELIST: &[(&str, Option<&str>)] = &[
+    ("adx", Some("adx_target_feature")),
     ("aes", None),
     ("avx", None),
     ("avx2", None),