1 // REQUIRES: aarch64-registered-target
2 // RUN: %clang --target=aarch64 --print-enabled-extensions -mcpu=ampere1a | FileCheck --strict-whitespace --implicit-check-not=FEAT_ %s
4 // CHECK: Extensions enabled for the given AArch64 target
6 // CHECK-NEXT: Architecture Feature(s) Description
7 // CHECK-NEXT: FEAT_AES, FEAT_PMULL Enable AES support
8 // CHECK-NEXT: FEAT_AMUv1 Enable Armv8.4-A Activity Monitors extension
9 // CHECK-NEXT: FEAT_AMUv1p1 Enable Armv8.6-A Activity Monitors Virtualization support
10 // CHECK-NEXT: FEAT_AdvSIMD Enable Advanced SIMD instructions
11 // CHECK-NEXT: FEAT_BF16 Enable BFloat16 Extension
12 // CHECK-NEXT: FEAT_BTI Enable Branch Target Identification
13 // CHECK-NEXT: FEAT_CCIDX Enable Armv8.3-A Extend of the CCSIDR number of sets
14 // CHECK-NEXT: FEAT_CRC32 Enable Armv8.0-A CRC-32 checksum instructions
15 // CHECK-NEXT: FEAT_CSV2_2 Enable architectural speculation restriction
16 // CHECK-NEXT: FEAT_DIT Enable Armv8.4-A Data Independent Timing instructions
17 // CHECK-NEXT: FEAT_DPB Enable Armv8.2-A data Cache Clean to Point of Persistence
18 // CHECK-NEXT: FEAT_DPB2 Enable Armv8.5-A Cache Clean to Point of Deep Persistence
19 // CHECK-NEXT: FEAT_DotProd Enable dot product support
20 // CHECK-NEXT: FEAT_ECV Enable enhanced counter virtualization extension
21 // CHECK-NEXT: FEAT_FCMA Enable Armv8.3-A Floating-point complex number support
22 // CHECK-NEXT: FEAT_FGT Enable fine grained virtualization traps extension
23 // CHECK-NEXT: FEAT_FHM Enable FP16 FML instructions
24 // CHECK-NEXT: FEAT_FP Enable Armv8.0-A Floating Point Extensions
25 // CHECK-NEXT: FEAT_FP16 Enable half-precision floating-point data processing
26 // CHECK-NEXT: FEAT_FRINTTS Enable FRInt[32|64][Z|X] instructions that round a floating-point number to an integer (in FP format) forcing it to fit into a 32- or 64-bit int
27 // CHECK-NEXT: FEAT_FlagM Enable Armv8.4-A Flag Manipulation instructions
28 // CHECK-NEXT: FEAT_FlagM2 Enable alternative NZCV format for floating point comparisons
29 // CHECK-NEXT: FEAT_I8MM Enable Matrix Multiply Int8 Extension
30 // CHECK-NEXT: FEAT_JSCVT Enable Armv8.3-A JavaScript FP conversion instructions
31 // CHECK-NEXT: FEAT_LOR Enable Armv8.1-A Limited Ordering Regions extension
32 // CHECK-NEXT: FEAT_LRCPC Enable support for RCPC extension
33 // CHECK-NEXT: FEAT_LRCPC2 Enable Armv8.4-A RCPC instructions with Immediate Offsets
34 // CHECK-NEXT: FEAT_LSE Enable Armv8.1-A Large System Extension (LSE) atomic instructions
35 // CHECK-NEXT: FEAT_LSE2 Enable Armv8.4-A Large System Extension 2 (LSE2) atomicity rules
36 // CHECK-NEXT: FEAT_MPAM Enable Armv8.4-A Memory system Partitioning and Monitoring extension
37 // CHECK-NEXT: FEAT_MTE, FEAT_MTE2 Enable Memory Tagging Extension
38 // CHECK-NEXT: FEAT_NV, FEAT_NV2 Enable Armv8.4-A Nested Virtualization Enchancement
39 // CHECK-NEXT: FEAT_PAN Enable Armv8.1-A Privileged Access-Never extension
40 // CHECK-NEXT: FEAT_PAN2 Enable Armv8.2-A PAN s1e1R and s1e1W Variants
41 // CHECK-NEXT: FEAT_PAuth Enable Armv8.3-A Pointer Authentication extension
42 // CHECK-NEXT: FEAT_PMUv3 Enable Armv8.0-A PMUv3 Performance Monitors extension
43 // CHECK-NEXT: FEAT_RAS, FEAT_RASv1p1 Enable Armv8.0-A Reliability, Availability and Serviceability Extensions
44 // CHECK-NEXT: FEAT_RDM Enable Armv8.1-A Rounding Double Multiply Add/Subtract instructions
45 // CHECK-NEXT: FEAT_RNG Enable Random Number generation instructions
46 // CHECK-NEXT: FEAT_SB Enable Armv8.5-A Speculation Barrier
47 // CHECK-NEXT: FEAT_SEL2 Enable Armv8.4-A Secure Exception Level 2 extension
48 // CHECK-NEXT: FEAT_SHA1, FEAT_SHA256 Enable SHA1 and SHA256 support
49 // CHECK-NEXT: FEAT_SHA3, FEAT_SHA512 Enable SHA512 and SHA3 support
50 // CHECK-NEXT: FEAT_SM4, FEAT_SM3 Enable SM3 and SM4 support
51 // CHECK-NEXT: FEAT_SPECRES Enable Armv8.5-A execution and data prediction invalidation instructions
52 // CHECK-NEXT: FEAT_SSBS, FEAT_SSBS2 Enable Speculative Store Bypass Safe bit
53 // CHECK-NEXT: FEAT_TLBIOS, FEAT_TLBIRANGE Enable Armv8.4-A TLB Range and Maintenance instructions
54 // CHECK-NEXT: FEAT_TRF Enable Armv8.4-A Trace extension
55 // CHECK-NEXT: FEAT_UAO Enable Armv8.2-A UAO PState
56 // CHECK-NEXT: FEAT_VHE Enable Armv8.1-A Virtual Host extension