diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2022-02-24 22:37:53 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2022-02-24 22:37:53 +0000 |
| commit | 7cee1b4aebf4ac1a9779fa352c249dcd263a6427 (patch) | |
| tree | fd30a57151208930076175c5c8b261e3cc9eb0aa /compiler/rustc_codegen_ssa/src | |
| parent | 1204400ab8da9830f6f77a5e40e7ad3ea459676a (diff) | |
| download | rust-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.rs | 1 |
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>)] = &[ |
