Skip to content

Commit 1c52e72

Browse files
committed
Document aarch64 target_feature options
1 parent a01d151 commit 1c52e72

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

src/attributes/codegen.md

+58
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,64 @@ Feature | Implicitly Enables | Description
131131
[`xsaveopt`]: https://www.felixcloutier.com/x86/xsaveopt
132132
[`xsaves`]: https://www.felixcloutier.com/x86/xsaves
133133

134+
#### `aarch64`
135+
136+
This platform requires that `#[target_feature]` is only applied to [`unsafe`
137+
functions][unsafe function].
138+
139+
Further documentation on these features can be found in the [ARM Architecture
140+
Reference Manual], or elsewhere on [developer.arm.com].
141+
142+
[ARM Architecture Reference Manual]: https://developer.arm.com/documentation/ddi0487/latest
143+
[developer.arm.com]: https://developer.arm.com
144+
145+
Feature | Implicitly Enables | Feature Name
146+
---------------|--------------------|-------------------
147+
`aes` | `neon` | FEAT_AES - Advanced <abbr title="Single Instruction Multiple Data">SIMD</abbr> AES instructions
148+
`bf16` | | FEAT_BF16 - BFloat16 instructions
149+
`bti` | | FEAT_BTI - Branch Target Identification
150+
`crc` | | FEAT_CRC - CRC32 checksum instructions
151+
`dit` | | FEAT_DIT - Data Independent Timing instructions
152+
`dotprod` | | FEAT_DotProd - Advanced SIMD Int8 dot product instructions
153+
`dpb` | | FEAT_DPB - Data cache clean to point of persistence
154+
`dpb2` | | FEAT_DPB2 - Data cache clean to point of deep persistence
155+
`f32mm` | `sve` | FEAT_F32MM - SVE single-precision FP matrix multiply instruction
156+
`f64mm` | `sve` | FEAT_F64MM - SVE double-precision FP matrix multiply instruction
157+
`fcma` | `neon` | FEAT_FCMA - Floating point complex number support
158+
`fhm` | `fp` | FEAT_FHM - Half-precision FP FMLAL instructions
159+
`flagm` | | FEAT_FlagM - Conditional flag manipulation
160+
`fp` | | FEAT_FP - Floating point extension
161+
`fp16` | `fp` | FEAT_FP16 - Half-precision FP data processing
162+
`frintts` | | FEAT_FRINTTS - Floating-point to int helper instructions
163+
`i8mm` | | FEAT_I8MM - Int8 Matrix Multiplication
164+
`jsconv` | `fp` | FEAT_JSCVT - JavaScript conversion instruction
165+
`lse` | | FEAT_LSE - Large System Extension
166+
`lor` | | FEAT_LOR - Limited Ordering Regions extension
167+
`mte` | | FEAT_MTE - Memory Tagging Extension
168+
`neon` | `fp` | FEAT_AdvSIMD - Advanced SIMD extension
169+
`pan` | | FEAT_PAN - Privileged Access-Never extension
170+
`pauth` | | FEAT_PAuth - Pointer Authentication
171+
`pmuv3` | | FEAT_PMUv3 - Performance Monitors extension (v3)
172+
`rand` | | FEAT_RNG - Random Number Generator
173+
`ras` | | FEAT_RAS - Reliability, Availability and Serviceability extension
174+
`rcpc` | | FEAT_LRCPC - Release consistent Processor Consistent
175+
`rcpc2` | `rcpc` | FEAT_LRCPC2 - RcPc with immediate offsets
176+
`rdm` | | FEAT_RDM - Rounding Double Multiply accumulate
177+
`sb` | | FEAT_SB - Speculation Barrier
178+
`sha2` | `neon` | FEAT_SHA1 & FEAT_SHA256 - Advanced SIMD SHA instructions
179+
`sha3` | `neon`, `sha2` | FEAT_SHA512 & FEAT_SHA3 - Advanced SIMD SHA instructions
180+
`sm4` | `neon` | FEAT_SM3 & FEAT_SM4 - Advanced SIMD SM3/4 instructions
181+
`spe` | | FEAT_SPE - Statistical Profiling Extension
182+
`ssbs` | | FEAT_SSBS - Speculative Store Bypass Safe
183+
`sve` | `fp` | FEAT_SVE - Scalable Vector Extension
184+
`sve2` | `sve` | FEAT_SVE2 - Scalable Vector Extension 2
185+
`sve2-aes` | `sve2`, `aes` | FEAT_SVE_AES - SVE AES instructions
186+
`sve2-sm4` | `sve2`, `sm4` | FEAT_SVE_SM4 - SVE SM4 instructions
187+
`sve2-sha3` | `sve2`, `sha3` | FEAT_SVE_SHA3 - SVE SHA3 instructions
188+
`sve2-bitperm` | `sve2` | FEAT_SVE_BitPerm - SVE Bit Permute
189+
`tme` | | FEAT_TME - Transactional Memory Extension
190+
`vh` | | FEAT_VHE - Virtualization Host Extensions
191+
134192
#### `wasm32` or `wasm64`
135193

136194
This platform allows `#[target_feature]` to be applied to both safe and

0 commit comments

Comments
 (0)