1 // REQUIRES: aarch64-registered-target
2 // RUN: %clang --target=aarch64 --print-enabled-extensions -mcpu=apple-a13 | 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_AdvSIMD Enable Advanced SIMD instructions
10 // CHECK-NEXT: FEAT_CRC32 Enable Armv8.0-A CRC-32 checksum instructions
11 // CHECK-NEXT: FEAT_DIT Enable Armv8.4-A Data Independent Timing instructions
12 // CHECK-NEXT: FEAT_DPB Enable Armv8.2-A data Cache Clean to Point of Persistence
13 // CHECK-NEXT: FEAT_DotProd Enable dot product support
14 // CHECK-NEXT: FEAT_FCMA Enable Armv8.3-A Floating-point complex number support
15 // CHECK-NEXT: FEAT_FHM Enable FP16 FML instructions
16 // CHECK-NEXT: FEAT_FP Enable Armv8.0-A Floating Point Extensions
17 // CHECK-NEXT: FEAT_FP16 Enable half-precision floating-point data processing
18 // CHECK-NEXT: FEAT_FlagM Enable Armv8.4-A Flag Manipulation instructions
19 // CHECK-NEXT: FEAT_JSCVT Enable Armv8.3-A JavaScript FP conversion instructions
20 // CHECK-NEXT: FEAT_LOR Enable Armv8.1-A Limited Ordering Regions extension
21 // CHECK-NEXT: FEAT_LRCPC Enable support for RCPC extension
22 // CHECK-NEXT: FEAT_LRCPC2 Enable Armv8.4-A RCPC instructions with Immediate Offsets
23 // CHECK-NEXT: FEAT_LSE Enable Armv8.1-A Large System Extension (LSE) atomic instructions
24 // CHECK-NEXT: FEAT_LSE2 Enable Armv8.4-A Large System Extension 2 (LSE2) atomicity rules
25 // CHECK-NEXT: FEAT_MPAM Enable Armv8.4-A Memory system Partitioning and Monitoring extension
26 // CHECK-NEXT: FEAT_NV, FEAT_NV2 Enable Armv8.4-A Nested Virtualization Enchancement
27 // CHECK-NEXT: FEAT_PAN Enable Armv8.1-A Privileged Access-Never extension
28 // CHECK-NEXT: FEAT_PAN2 Enable Armv8.2-A PAN s1e1R and s1e1W Variants
29 // CHECK-NEXT: FEAT_PAuth Enable Armv8.3-A Pointer Authentication extension
30 // CHECK-NEXT: FEAT_PMUv3 Enable Armv8.0-A PMUv3 Performance Monitors extension
31 // CHECK-NEXT: FEAT_RAS, FEAT_RASv1p1 Enable Armv8.0-A Reliability, Availability and Serviceability Extensions
32 // CHECK-NEXT: FEAT_RDM Enable Armv8.1-A Rounding Double Multiply Add/Subtract instructions
33 // CHECK-NEXT: FEAT_SEL2 Enable Armv8.4-A Secure Exception Level 2 extension
34 // CHECK-NEXT: FEAT_SHA1, FEAT_SHA256 Enable SHA1 and SHA256 support
35 // CHECK-NEXT: FEAT_SHA3, FEAT_SHA512 Enable SHA512 and SHA3 support
36 // CHECK-NEXT: FEAT_TLBIOS, FEAT_TLBIRANGE Enable Armv8.4-A TLB Range and Maintenance instructions
37 // CHECK-NEXT: FEAT_TRF Enable Armv8.4-A Trace extension
38 // CHECK-NEXT: FEAT_UAO Enable Armv8.2-A UAO PState
39 // CHECK-NEXT: FEAT_VHE Enable Armv8.1-A Virtual Host extension