64 lines · c
1// REQUIRES: aarch64-registered-target2// RUN: %clang --target=aarch64 --print-enabled-extensions -mcpu=apple-m4 | FileCheck --strict-whitespace --implicit-check-not=FEAT_ %s3 4// CHECK: Extensions enabled for the given AArch64 target5// CHECK-EMPTY:6// CHECK-NEXT: Architecture Feature(s) Description7// CHECK-NEXT: FEAT_AES, FEAT_PMULL Enable AES support8// CHECK-NEXT: FEAT_AMUv1 Enable Armv8.4-A Activity Monitors extension9// CHECK-NEXT: FEAT_AMUv1p1 Enable Armv8.6-A Activity Monitors Virtualization support10// CHECK-NEXT: FEAT_AdvSIMD Enable Advanced SIMD instructions11// CHECK-NEXT: FEAT_BF16 Enable BFloat16 Extension12// CHECK-NEXT: FEAT_BTI Enable Branch Target Identification13// CHECK-NEXT: FEAT_CRC32 Enable Armv8.0-A CRC-32 checksum instructions14// CHECK-NEXT: FEAT_CSV2_2 Enable architectural speculation restriction15// CHECK-NEXT: FEAT_DIT Enable Armv8.4-A Data Independent Timing instructions16// CHECK-NEXT: FEAT_DPB Enable Armv8.2-A data Cache Clean to Point of Persistence17// CHECK-NEXT: FEAT_DPB2 Enable Armv8.5-A Cache Clean to Point of Deep Persistence18// CHECK-NEXT: FEAT_DotProd Enable dot product support19// CHECK-NEXT: FEAT_ECV Enable enhanced counter virtualization extension20// CHECK-NEXT: FEAT_FCMA Enable Armv8.3-A Floating-point complex number support21// CHECK-NEXT: FEAT_FGT Enable fine grained virtualization traps extension22// CHECK-NEXT: FEAT_FHM Enable FP16 FML instructions23// CHECK-NEXT: FEAT_FP Enable Armv8.0-A Floating Point Extensions24// CHECK-NEXT: FEAT_FP16 Enable half-precision floating-point data processing25// CHECK-NEXT: FEAT_FPAC Enable Armv8.3-A Pointer Authentication Faulting enhancement26// 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 int27// CHECK-NEXT: FEAT_FlagM Enable Armv8.4-A Flag Manipulation instructions28// CHECK-NEXT: FEAT_FlagM2 Enable alternative NZCV format for floating point comparisons29// CHECK-NEXT: FEAT_HCX Enable Armv8.7-A HCRX_EL2 system register30// CHECK-NEXT: FEAT_I8MM Enable Matrix Multiply Int8 Extension31// CHECK-NEXT: FEAT_JSCVT Enable Armv8.3-A JavaScript FP conversion instructions32// CHECK-NEXT: FEAT_LOR Enable Armv8.1-A Limited Ordering Regions extension33// CHECK-NEXT: FEAT_LRCPC Enable support for RCPC extension34// CHECK-NEXT: FEAT_LRCPC2 Enable Armv8.4-A RCPC instructions with Immediate Offsets35// CHECK-NEXT: FEAT_LSE Enable Armv8.1-A Large System Extension (LSE) atomic instructions36// CHECK-NEXT: FEAT_LSE2 Enable Armv8.4-A Large System Extension 2 (LSE2) atomicity rules37// FIXME: Apple M4 does not have FEAT_MPAM, but it is currently marked as38// non-optional in llvm's understanding of Armv8.4-A39// CHECK-NEXT: FEAT_MPAM Enable Armv8.4-A Memory system Partitioning and Monitoring extension40// CHECK-NEXT: FEAT_NV, FEAT_NV2 Enable Armv8.4-A Nested Virtualization Enchancement41// CHECK-NEXT: FEAT_PAN Enable Armv8.1-A Privileged Access-Never extension42// CHECK-NEXT: FEAT_PAN2 Enable Armv8.2-A PAN s1e1R and s1e1W Variants43// CHECK-NEXT: FEAT_PAuth Enable Armv8.3-A Pointer Authentication extension44// CHECK-NEXT: FEAT_PMUv3 Enable Armv8.0-A PMUv3 Performance Monitors extension45// CHECK-NEXT: FEAT_RAS, FEAT_RASv1p1 Enable Armv8.0-A Reliability, Availability and Serviceability Extensions46// CHECK-NEXT: FEAT_RDM Enable Armv8.1-A Rounding Double Multiply Add/Subtract instructions47// CHECK-NEXT: FEAT_SB Enable Armv8.5-A Speculation Barrier48// FIXME: Apple M4 does not have FEAT_SEL2, but it is currently marked as49// non-optional in llvm's understanding of Armv8.4-A50// CHECK-NEXT: FEAT_SEL2 Enable Armv8.4-A Secure Exception Level 2 extension51// CHECK-NEXT: FEAT_SHA1, FEAT_SHA256 Enable SHA1 and SHA256 support52// CHECK-NEXT: FEAT_SHA3, FEAT_SHA512 Enable SHA512 and SHA3 support53// CHECK-NEXT: FEAT_SME Enable Scalable Matrix Extension (SME)54// CHECK-NEXT: FEAT_SME2 Enable Scalable Matrix Extension 2 (SME2) instructions55// CHECK-NEXT: FEAT_SME_F64F64 Enable Scalable Matrix Extension (SME) F64F64 instructions56// CHECK-NEXT: FEAT_SME_I16I64 Enable Scalable Matrix Extension (SME) I16I64 instructions57// CHECK-NEXT: FEAT_SPECRES Enable Armv8.5-A execution and data prediction invalidation instructions58// CHECK-NEXT: FEAT_TLBIOS, FEAT_TLBIRANGE Enable Armv8.4-A TLB Range and Maintenance instructions59// CHECK-NEXT: FEAT_TRF Enable Armv8.4-A Trace extension60// CHECK-NEXT: FEAT_UAO Enable Armv8.2-A UAO PState61// CHECK-NEXT: FEAT_VHE Enable Armv8.1-A Virtual Host extension62// CHECK-NEXT: FEAT_WFxT Enable Armv8.7-A WFET and WFIT instruction63// CHECK-NEXT: FEAT_XS Enable Armv8.7-A limited-TLB-maintenance instruction64