1 // REQUIRES: aarch64-registered-target
2 // RUN: %clang --target=aarch64 --print-enabled-extensions -mcpu=neoverse-v3ae | 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_AMUv1 Enable Armv8.4-A Activity Monitors extension
8 // CHECK-NEXT: FEAT_AMUv1p1 Enable Armv8.6-A Activity Monitors Virtualization support
9 // CHECK-NEXT: FEAT_AdvSIMD Enable Advanced SIMD instructions
10 // CHECK-NEXT: FEAT_BF16 Enable BFloat16 Extension
11 // CHECK-NEXT: FEAT_BRBE Enable Branch Record Buffer 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_ETE Enable Embedded Trace Extension
22 // CHECK-NEXT: FEAT_FCMA Enable Armv8.3-A Floating-point complex number support
23 // CHECK-NEXT: FEAT_FGT Enable fine grained virtualization traps extension
24 // CHECK-NEXT: FEAT_FHM Enable FP16 FML instructions
25 // CHECK-NEXT: FEAT_FP Enable Armv8.0-A Floating Point Extensions
26 // CHECK-NEXT: FEAT_FP16 Enable half-precision floating-point data processing
27 // 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
28 // CHECK-NEXT: FEAT_FlagM Enable Armv8.4-A Flag Manipulation instructions
29 // CHECK-NEXT: FEAT_FlagM2 Enable alternative NZCV format for floating point comparisons
30 // CHECK-NEXT: FEAT_HCX Enable Armv8.7-A HCRX_EL2 system register
31 // CHECK-NEXT: FEAT_I8MM Enable Matrix Multiply Int8 Extension
32 // CHECK-NEXT: FEAT_JSCVT Enable Armv8.3-A JavaScript FP conversion instructions
33 // CHECK-NEXT: FEAT_LOR Enable Armv8.1-A Limited Ordering Regions extension
34 // CHECK-NEXT: FEAT_LRCPC Enable support for RCPC extension
35 // CHECK-NEXT: FEAT_LRCPC2 Enable Armv8.4-A RCPC instructions with Immediate Offsets
36 // CHECK-NEXT: FEAT_LS64, FEAT_LS64_V, FEAT_LS64_ACCDATA Enable Armv8.7-A LD64B/ST64B Accelerator Extension
37 // CHECK-NEXT: FEAT_LSE Enable Armv8.1-A Large System Extension (LSE) atomic instructions
38 // CHECK-NEXT: FEAT_LSE2 Enable Armv8.4-A Large System Extension 2 (LSE2) atomicity rules
39 // CHECK-NEXT: FEAT_MPAM Enable Armv8.4-A Memory system Partitioning and Monitoring extension
40 // CHECK-NEXT: FEAT_MTE, FEAT_MTE2 Enable Memory Tagging Extension
41 // CHECK-NEXT: FEAT_NV, FEAT_NV2 Enable Armv8.4-A Nested Virtualization Enchancement
42 // CHECK-NEXT: FEAT_PAN Enable Armv8.1-A Privileged Access-Never extension
43 // CHECK-NEXT: FEAT_PAN2 Enable Armv8.2-A PAN s1e1R and s1e1W Variants
44 // CHECK-NEXT: FEAT_PAuth Enable Armv8.3-A Pointer Authentication extension
45 // CHECK-NEXT: FEAT_PMUv3 Enable Armv8.0-A PMUv3 Performance Monitors extension
46 // CHECK-NEXT: FEAT_RAS, FEAT_RASv1p1 Enable Armv8.0-A Reliability, Availability and Serviceability Extensions
47 // CHECK-NEXT: FEAT_RDM Enable Armv8.1-A Rounding Double Multiply Add/Subtract instructions
48 // CHECK-NEXT: FEAT_RME Enable Realm Management Extension
49 // CHECK-NEXT: FEAT_RNG Enable Random Number generation instructions
50 // CHECK-NEXT: FEAT_SB Enable Armv8.5-A Speculation Barrier
51 // CHECK-NEXT: FEAT_SEL2 Enable Armv8.4-A Secure Exception Level 2 extension
52 // CHECK-NEXT: FEAT_SPE Enable Statistical Profiling extension
53 // CHECK-NEXT: FEAT_SPECRES Enable Armv8.5-A execution and data prediction invalidation instructions
54 // CHECK-NEXT: FEAT_SPEv1p2 Enable extra register in the Statistical Profiling Extension
55 // CHECK-NEXT: FEAT_SSBS, FEAT_SSBS2 Enable Speculative Store Bypass Safe bit
56 // CHECK-NEXT: FEAT_SVE Enable Scalable Vector Extension (SVE) instructions
57 // CHECK-NEXT: FEAT_SVE2 Enable Scalable Vector Extension 2 (SVE2) instructions
58 // CHECK-NEXT: FEAT_SVE_BitPerm Enable bit permutation SVE2 instructions
59 // CHECK-NEXT: FEAT_TLBIOS, FEAT_TLBIRANGE Enable Armv8.4-A TLB Range and Maintenance instructions
60 // CHECK-NEXT: FEAT_TRBE Enable Trace Buffer Extension
61 // CHECK-NEXT: FEAT_TRF Enable Armv8.4-A Trace extension
62 // CHECK-NEXT: FEAT_UAO Enable Armv8.2-A UAO PState
63 // CHECK-NEXT: FEAT_VHE Enable Armv8.1-A Virtual Host extension
64 // CHECK-NEXT: FEAT_WFxT Enable Armv8.7-A WFET and WFIT instruction
65 // CHECK-NEXT: FEAT_XS Enable Armv8.7-A limited-TLB-maintenance instruction