asm: Allow using r9 (ARM) and x18 (AArch64) if they are not reserved by

the current target.
This commit is contained in:
Amanieu d'Antras 2021-12-07 23:46:38 +00:00
parent 0b42deaccc
commit 8716f2780e
5 changed files with 72 additions and 9 deletions

View file

@ -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)),
("reserve-r9", Some(sym::arm_target_feature)),
];
const AARCH64_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[