Skip to content

Commit 580f437

Browse files
committed
ARM: expose rclass and dsp target features
- `dsp`: the subtarget supports the DSP (saturating arith. and such) instructions - `rclass`: target is a Cortex-R Both features are useful to support ARM MCUs on `coresimd`. Note: Cortex-R52 is the first Armv8-R with `neon` support
1 parent 1398572 commit 580f437

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_codegen_llvm/llvm_util.rs

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ unsafe fn configure_llvm(sess: &Session) {
8585

8686
const ARM_WHITELIST: &[(&str, Option<&str>)] = &[
8787
("mclass", Some("arm_target_feature")),
88+
("rclass", Some("arm_target_feature")),
89+
("dsp", Some("arm_target_feature")),
8890
("neon", Some("arm_target_feature")),
8991
("v7", Some("arm_target_feature")),
9092
("vfp2", Some("arm_target_feature")),

0 commit comments

Comments
 (0)