diff options
| author | jam1garner <jam@jam1.re> | 2022-07-18 20:40:41 -0400 |
|---|---|---|
| committer | jam1garner <jam@jam1.re> | 2022-07-18 20:40:41 -0400 |
| commit | bec3a545a55590dd8029bad61d5ea18416c4caf8 (patch) | |
| tree | 107db82de4dfa5fb336cf826cd7ec5a4b53ddc72 /compiler/rustc_codegen_ssa/src | |
| parent | ed9173276a176126150b4c684a4262a135ce51ef (diff) | |
| download | rust-bec3a545a55590dd8029bad61d5ea18416c4caf8.tar.gz rust-bec3a545a55590dd8029bad61d5ea18416c4caf8.zip | |
Add support for MIPS VZ ISA extension
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/target_features.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs index bfdef2dc0e8..a3ad6a3fcbd 100644 --- a/compiler/rustc_codegen_ssa/src/target_features.rs +++ b/compiler/rustc_codegen_ssa/src/target_features.rs @@ -210,8 +210,11 @@ const POWERPC_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[ ("vsx", Some(sym::powerpc_target_feature)), ]; -const MIPS_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = - &[("fp64", Some(sym::mips_target_feature)), ("msa", Some(sym::mips_target_feature))]; +const MIPS_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[ + ("fp64", Some(sym::mips_target_feature)), + ("msa", Some(sym::mips_target_feature)), + ("virt", Some(sym::mips_target_feature)), +]; const RISCV_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[ ("m", Some(sym::riscv_target_feature)), |
