about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2022-02-24 22:37:53 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2022-02-24 22:37:53 +0000
commit7cee1b4aebf4ac1a9779fa352c249dcd263a6427 (patch)
treefd30a57151208930076175c5c8b261e3cc9eb0aa /compiler/rustc_codegen_ssa/src
parent1204400ab8da9830f6f77a5e40e7ad3ea459676a (diff)
downloadrust-7cee1b4aebf4ac1a9779fa352c249dcd263a6427.tar.gz
rust-7cee1b4aebf4ac1a9779fa352c249dcd263a6427.zip
ARM: Only allow using d16-d31 with asm! when supported by the target
Support can be determined by checking for the "d32" LLVM feature.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-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 77166c89735..14045ad7ff5 100644
--- a/compiler/rustc_codegen_ssa/src/target_features.rs
+++ b/compiler/rustc_codegen_ssa/src/target_features.rs
@@ -36,6 +36,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>)] = &[