Skip to content

Commit

Permalink
librustc_trans: add fp64 to mips features whitelist
Browse files Browse the repository at this point in the history
On 32-bit MIPS, enabling MSA requires also enabling the 64-bit FPU.
  • Loading branch information
jcowgill committed Mar 8, 2018
1 parent fccaf25 commit 0711a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trans/llvm_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 0711a7a

Please sign in to comment.