]> git.lizzy.rs Git - rust.git/commitdiff
librustc_trans: add fp64 to mips features whitelist
authorJames Cowgill <jcowgill@debian.org>
Thu, 8 Mar 2018 12:04:09 +0000 (12:04 +0000)
committerJames Cowgill <jcowgill@debian.org>
Thu, 8 Mar 2018 13:19:36 +0000 (13:19 +0000)
On 32-bit MIPS, enabling MSA requires also enabling the 64-bit FPU.

src/librustc_trans/llvm_util.rs

index 45445a48e233ed160b5ac6c743296d28e95b70ad..afe32f3f66933560915451c20b5700d2dd80c607 100644 (file)
@@ -104,7 +104,7 @@ unsafe fn configure_llvm(sess: &Session) {
                                                      "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" {