about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2018-07-26 09:18:35 -0600
committerGitHub <noreply@github.com>2018-07-26 09:18:35 -0600
commit37835be2e336123d3d2aedce3b91de3d4ae14e6a (patch)
tree0c22502895bb50bbf7025dc9ffb4c010c1abf031
parent7c09bab986086b19bae6afe342737578357fbe86 (diff)
parent580f437ff2c7911662e2cc436b477d63b803c07c (diff)
downloadrust-37835be2e336123d3d2aedce3b91de3d4ae14e6a.tar.gz
rust-37835be2e336123d3d2aedce3b91de3d4ae14e6a.zip
Rollup merge of #52690 - paoloteti:rclass-dsp, r=alexcrichton
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.

r? @alexcrichton
cc @japaric
-rw-r--r--src/librustc_codegen_llvm/llvm_util.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/llvm_util.rs b/src/librustc_codegen_llvm/llvm_util.rs
index 87ee9ef5adb..e941998098d 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")),