From 0711a7a72f5828825357a4eb5db70aedb2dabef4 Mon Sep 17 00:00:00 2001 From: James Cowgill Date: Thu, 8 Mar 2018 12:04:09 +0000 Subject: [PATCH] librustc_trans: add fp64 to mips features whitelist On 32-bit MIPS, enabling MSA requires also enabling the 64-bit FPU. --- src/librustc_trans/llvm_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_trans/llvm_util.rs b/src/librustc_trans/llvm_util.rs index 45445a48e233e..afe32f3f66933 100644 --- a/src/librustc_trans/llvm_util.rs +++ b/src/librustc_trans/llvm_util.rs @@ -104,7 +104,7 @@ const POWERPC_WHITELIST: &'static [&'static str] = &["altivec", "power8-vector", "power9-vector", "vsx"]; -const MIPS_WHITELIST: &'static [&'static str] = &["msa"]; +const MIPS_WHITELIST: &'static [&'static str] = &["fp64", "msa"]; pub fn to_llvm_feature<'a>(sess: &Session, s: &'a str) -> &'a str { let arch = if sess.target.target.arch == "x86_64" {