]> git.lizzy.rs Git - rust.git/commitdiff
ARM: expose `rclass` and `dsp` target features
authorPaolo Teti <paolo.teti@gmail.com>
Wed, 25 Jul 2018 07:27:55 +0000 (09:27 +0200)
committerPaolo Teti <paolo.teti@gmail.com>
Wed, 25 Jul 2018 07:27:55 +0000 (09:27 +0200)
- `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

index 87ee9ef5adb23aad019ecafd85a8c1571d24e198..e941998098d00ceba7242969c8579151a0915945 100644 (file)
@@ -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")),