Skip to content

Commit

Permalink
Document aarch64 target_feature options
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgemmell committed Nov 1, 2021
1 parent a01d151 commit 1c52e72
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions src/attributes/codegen.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,64 @@ Feature | Implicitly Enables | Description
[`xsaveopt`]: https://www.felixcloutier.com/x86/xsaveopt
[`xsaves`]: https://www.felixcloutier.com/x86/xsaves

#### `aarch64`

This platform requires that `#[target_feature]` is only applied to [`unsafe`
functions][unsafe function].

Further documentation on these features can be found in the [ARM Architecture
Reference Manual], or elsewhere on [developer.arm.com].

[ARM Architecture Reference Manual]: https://developer.arm.com/documentation/ddi0487/latest
[developer.arm.com]: https://developer.arm.com

Feature | Implicitly Enables | Feature Name
---------------|--------------------|-------------------
`aes` | `neon` | FEAT_AES - Advanced <abbr title="Single Instruction Multiple Data">SIMD</abbr> AES instructions
`bf16` | | FEAT_BF16 - BFloat16 instructions
`bti` | | FEAT_BTI - Branch Target Identification
`crc` | | FEAT_CRC - CRC32 checksum instructions
`dit` | | FEAT_DIT - Data Independent Timing instructions
`dotprod` | | FEAT_DotProd - Advanced SIMD Int8 dot product instructions
`dpb` | | FEAT_DPB - Data cache clean to point of persistence
`dpb2` | | FEAT_DPB2 - Data cache clean to point of deep persistence
`f32mm` | `sve` | FEAT_F32MM - SVE single-precision FP matrix multiply instruction
`f64mm` | `sve` | FEAT_F64MM - SVE double-precision FP matrix multiply instruction
`fcma` | `neon` | FEAT_FCMA - Floating point complex number support
`fhm` | `fp` | FEAT_FHM - Half-precision FP FMLAL instructions
`flagm` | | FEAT_FlagM - Conditional flag manipulation
`fp` | | FEAT_FP - Floating point extension
`fp16` | `fp` | FEAT_FP16 - Half-precision FP data processing
`frintts` | | FEAT_FRINTTS - Floating-point to int helper instructions
`i8mm` | | FEAT_I8MM - Int8 Matrix Multiplication
`jsconv` | `fp` | FEAT_JSCVT - JavaScript conversion instruction
`lse` | | FEAT_LSE - Large System Extension
`lor` | | FEAT_LOR - Limited Ordering Regions extension
`mte` | | FEAT_MTE - Memory Tagging Extension
`neon` | `fp` | FEAT_AdvSIMD - Advanced SIMD extension
`pan` | | FEAT_PAN - Privileged Access-Never extension
`pauth` | | FEAT_PAuth - Pointer Authentication
`pmuv3` | | FEAT_PMUv3 - Performance Monitors extension (v3)
`rand` | | FEAT_RNG - Random Number Generator
`ras` | | FEAT_RAS - Reliability, Availability and Serviceability extension
`rcpc` | | FEAT_LRCPC - Release consistent Processor Consistent
`rcpc2` | `rcpc` | FEAT_LRCPC2 - RcPc with immediate offsets
`rdm` | | FEAT_RDM - Rounding Double Multiply accumulate
`sb` | | FEAT_SB - Speculation Barrier
`sha2` | `neon` | FEAT_SHA1 & FEAT_SHA256 - Advanced SIMD SHA instructions
`sha3` | `neon`, `sha2` | FEAT_SHA512 & FEAT_SHA3 - Advanced SIMD SHA instructions
`sm4` | `neon` | FEAT_SM3 & FEAT_SM4 - Advanced SIMD SM3/4 instructions
`spe` | | FEAT_SPE - Statistical Profiling Extension
`ssbs` | | FEAT_SSBS - Speculative Store Bypass Safe
`sve` | `fp` | FEAT_SVE - Scalable Vector Extension
`sve2` | `sve` | FEAT_SVE2 - Scalable Vector Extension 2
`sve2-aes` | `sve2`, `aes` | FEAT_SVE_AES - SVE AES instructions
`sve2-sm4` | `sve2`, `sm4` | FEAT_SVE_SM4 - SVE SM4 instructions
`sve2-sha3` | `sve2`, `sha3` | FEAT_SVE_SHA3 - SVE SHA3 instructions
`sve2-bitperm` | `sve2` | FEAT_SVE_BitPerm - SVE Bit Permute
`tme` | | FEAT_TME - Transactional Memory Extension
`vh` | | FEAT_VHE - Virtualization Host Extensions

#### `wasm32` or `wasm64`

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

0 comments on commit 1c52e72

Please sign in to comment.