about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-12-14 22:10:18 +0800
committerkennytm <kennytm@gmail.com>2018-12-14 22:17:46 +0800
commitadb674ca2913ab41129a7dc12a0c5f5ace10e35d (patch)
treef823bb02dd5991ab72d6b8351221e1e709404592
parent123b72a05e140b7b39bb60b4ef8a24d32091b83d (diff)
parent78f20de075501126949c545a310fb921ab7b4c59 (diff)
downloadrust-adb674ca2913ab41129a7dc12a0c5f5ace10e35d.tar.gz
rust-adb674ca2913ab41129a7dc12a0c5f5ace10e35d.zip
Rollup merge of #56749 - alexcrichton:adx, r=gnzlbg
x86: Add the `adx` target feature to whitelist

Requested in rust-lang-nursery/stdsimd#322 this is hopefully the first
step!
-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),