about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-04 02:06:40 +0100
committerGitHub <noreply@github.com>2022-03-04 02:06:40 +0100
commit79c71d1f9e41aad3c8104ed7b7fe6762823076a6 (patch)
tree4455f28e3866ce42971a8c875b961bfd72c6caa2 /compiler/rustc_codegen_ssa
parentcdfb39ef07c9ee4c48905db5bf037937a96e2353 (diff)
parent7cee1b4aebf4ac1a9779fa352c249dcd263a6427 (diff)
downloadrust-79c71d1f9e41aad3c8104ed7b7fe6762823076a6.tar.gz
rust-79c71d1f9e41aad3c8104ed7b7fe6762823076a6.zip
Rollup merge of #94339 - Amanieu:arm-d32, r=nagisa
ARM: Only allow using d16-d31 with asm! when supported by the target

Support can be determined by checking for the "d32" LLVM feature.

r? ```````````````@nagisa```````````````
Diffstat (limited to 'compiler/rustc_codegen_ssa')
-rw-r--r--compiler/rustc_codegen_ssa/src/target_features.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs
index fd4adfea808..df011d6ca5f 100644
--- a/compiler/rustc_codegen_ssa/src/target_features.rs
+++ b/compiler/rustc_codegen_ssa/src/target_features.rs
@@ -39,6 +39,7 @@ const ARM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
     // #[target_feature].
     ("thumb-mode", Some(sym::arm_target_feature)),
     ("thumb2", Some(sym::arm_target_feature)),
+    ("d32", Some(sym::arm_target_feature)),
 ];
 
 const AARCH64_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[