File tree 1 file changed +10
-0
lines changed
crates/core_arch/src/acle
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 33
33
//! - `v6 < v8m < v6t2`
34
34
//! - `v7 < v8m.main`
35
35
//!
36
+ //! *NOTE*: Section 5.4.7 of ACLE says:
37
+ //!
38
+ //! - "__ARM_FEATURE_DSP is defined to 1 if the DSP (v5E) instructions are supported and the
39
+ //! intrinsics defined in Saturating intrinsics are available."
40
+ //!
41
+ //! This does *not* match how LLVM uses the '+dsp' feature; this feature is not set for v5te
42
+ //! targets so we have to work around this difference.
43
+ //!
36
44
//! # References
37
45
//!
38
46
//! - [ACLE Q2 2018](https://developer.arm.com/docs/101028/latest)
@@ -54,6 +62,8 @@ pub use self::registers::*;
54
62
// Supported arches: 5TE, 7E-M. See Section 10.1 of ACLE (e.g. QADD)
55
63
// We also include the A profile even though DSP is deprecated on that profile as of ACLE 2.0 (see
56
64
// section 5.4.7)
65
+ // Here we workaround the difference between LLVM's +dsp and ACLE's __ARM_FEATURE_DSP by gating on
66
+ // '+v5te' rather than on '+dsp'
57
67
#[ cfg( all(
58
68
not( target_arch = "aarch64" ) ,
59
69
any(
You can’t perform that action at this time.
0 commit comments