@@ -85,7 +85,7 @@ const X86_WHITELIST: &'static [&'static str] = &["avx\0", "avx2\0", "bmi\0", "bm
85
85
"avx512dq\0 " , "avx512er\0 " ,
86
86
"avx512f\0 " , "avx512ifma\0 " ,
87
87
"avx512pf\0 " , "avx512vbmi\0 " ,
88
- "avx512vl\0 " , "avx512vpopcntdq\0 " ] ;
88
+ "avx512vl\0 " , "avx512vpopcntdq\0 " , "mmx \0 " ] ;
89
89
90
90
const HEXAGON_WHITELIST : & ' static [ & ' static str ] = & [ "hvx\0 " , "hvx-double\0 " ] ;
91
91
@@ -94,6 +94,8 @@ const POWERPC_WHITELIST: &'static [&'static str] = &["altivec\0",
94
94
"power8-vector\0 " , "power9-vector\0 " ,
95
95
"vsx\0 " ] ;
96
96
97
+ const MIPS_WHITELIST : & ' static [ & ' static str ] = & [ "msa\0 " ] ;
98
+
97
99
pub fn target_features ( sess : & Session ) -> Vec < Symbol > {
98
100
let target_machine = create_target_machine ( sess) ;
99
101
@@ -102,6 +104,7 @@ pub fn target_features(sess: &Session) -> Vec<Symbol> {
102
104
"aarch64" => AARCH64_WHITELIST ,
103
105
"x86" | "x86_64" => X86_WHITELIST ,
104
106
"hexagon" => HEXAGON_WHITELIST ,
107
+ "mips" | "mips64" => MIPS_WHITELIST ,
105
108
"powerpc" | "powerpc64" => POWERPC_WHITELIST ,
106
109
_ => & [ ] ,
107
110
} ;
0 commit comments