diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2021-11-11 12:42:38 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2021-12-07 23:54:09 +0000 |
| commit | 908f300dd7878f6bcd0f5479c2db680067aec3d8 (patch) | |
| tree | c48d6412586bef7702c7a5f4c2e35150c0bd5f52 /compiler/rustc_codegen_ssa/src | |
| parent | 0b6f079e4987ded15c13a15b734e7cfb8176839f (diff) | |
| download | rust-908f300dd7878f6bcd0f5479c2db680067aec3d8.tar.gz rust-908f300dd7878f6bcd0f5479c2db680067aec3d8.zip | |
Remove the reg_thumb register class for asm! on ARM
Also restricts r8-r14 from being used on Thumb1 targets as per #90736.
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 b4420df5df4..ba72e3cfafc 100644 --- a/compiler/rustc_codegen_ssa/src/target_features.rs +++ b/compiler/rustc_codegen_ssa/src/target_features.rs @@ -35,6 +35,7 @@ const ARM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[ // since it should be enabled per-function using #[instruction_set], not // #[target_feature]. ("thumb-mode", Some(sym::arm_target_feature)), + ("thumb2", Some(sym::arm_target_feature)), ]; const AARCH64_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[ |
