From 580f437ff2c7911662e2cc436b477d63b803c07c Mon Sep 17 00:00:00 2001 From: Paolo Teti Date: Wed, 25 Jul 2018 09:27:55 +0200 Subject: [PATCH] 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 --- src/librustc_codegen_llvm/llvm_util.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_codegen_llvm/llvm_util.rs b/src/librustc_codegen_llvm/llvm_util.rs index 87ee9ef5adb23..e941998098d00 100644 --- a/src/librustc_codegen_llvm/llvm_util.rs +++ b/src/librustc_codegen_llvm/llvm_util.rs @@ -85,6 +85,8 @@ unsafe fn configure_llvm(sess: &Session) { const ARM_WHITELIST: &[(&str, Option<&str>)] = &[ ("mclass", Some("arm_target_feature")), + ("rclass", Some("arm_target_feature")), + ("dsp", Some("arm_target_feature")), ("neon", Some("arm_target_feature")), ("v7", Some("arm_target_feature")), ("vfp2", Some("arm_target_feature")),