Skip to content

Commit 6020f30

Browse files
committed
introduce a whitelist for aarch64
1 parent 3bd9d62 commit 6020f30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc_trans/llvm_util.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ unsafe fn configure_llvm(sess: &Session) {
7373

7474
const ARM_WHITELIST: &'static [&'static str] = &["neon\0", "vfp2\0", "vfp3\0", "vfp4\0"];
7575

76+
const AARCH64_WHITELIST: &'static [&'static str] = &["neon\0"];
77+
7678
const X86_WHITELIST: &'static [&'static str] = &["avx\0", "avx2\0", "bmi\0", "bmi2\0", "sse\0",
7779
"sse2\0", "sse3\0", "sse4.1\0", "sse4.2\0",
7880
"ssse3\0", "tbm\0", "lzcnt\0", "popcnt\0",
@@ -89,7 +91,8 @@ pub fn target_features(sess: &Session) -> Vec<Symbol> {
8991
let target_machine = create_target_machine(sess);
9092

9193
let whitelist = match &*sess.target.target.arch {
92-
"arm" | "aarch64" => ARM_WHITELIST,
94+
"arm" => ARM_WHITELIST,
95+
"aarch64" => AARCH64_WHITELIST,
9396
"x86" | "x86_64" => X86_WHITELIST,
9497
"hexagon" => HEXAGON_WHITELIST,
9598
"powerpc" | "powerpc64" => POWERPC_WHITELIST,

0 commit comments

Comments
 (0)