Skip to content

Commit 9cb58d6

Browse files
committed
[AArch64] Add FEAT_FPAC to Grace
This feature is supported in Grace, but wasn't specified in the CPU definition. This is not important for codegen, but is good for completeness, and good for other tools that could query the CPU definition (e.g. llvm-exegesis).
1 parent 75cf046 commit 9cb58d6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clang/test/Driver/print-enabled-extensions/aarch64-grace.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// CHECK-NEXT: FEAT_FHM Enable FP16 FML instructions
2222
// CHECK-NEXT: FEAT_FP Enable Armv8.0-A Floating Point Extensions
2323
// CHECK-NEXT: FEAT_FP16 Enable half-precision floating-point data processing
24+
// CHECK-NEXT: FEAT_FPAC Enable Armv8.3-A Pointer Authentication Faulting enhancement
2425
// 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
2526
// CHECK-NEXT: FEAT_FlagM Enable Armv8.4-A Flag Manipulation instructions
2627
// CHECK-NEXT: FEAT_FlagM2 Enable alternative NZCV format for floating point comparisons
@@ -59,4 +60,4 @@
5960
// CHECK-NEXT: FEAT_TRBE Enable Trace Buffer Extension
6061
// CHECK-NEXT: FEAT_TRF Enable Armv8.4-A Trace extension
6162
// CHECK-NEXT: FEAT_UAO Enable Armv8.2-A UAO PState
62-
// CHECK-NEXT: FEAT_VHE Enable Armv8.1-A Virtual Host extension
63+
// CHECK-NEXT: FEAT_VHE Enable Armv8.1-A Virtual Host extension

llvm/lib/Target/AArch64/AArch64Processors.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,8 @@ def ProcessorFeatures {
10671067
FeatureDotProd, FeatureFPARMv8, FeatureMatMulInt8,
10681068
FeatureSSBS, FeatureCCIDX,
10691069
FeatureJS, FeatureLSE, FeatureRAS, FeatureRCPC, FeatureRDM];
1070-
list<SubtargetFeature> Grace = !listconcat(NeoverseV2, [FeatureSVE2SM4, FeatureSVEAES, FeatureSVE2SHA3]);
1070+
list<SubtargetFeature> Grace = !listconcat(NeoverseV2, [FeatureSVE2SM4, FeatureSVEAES, FeatureSVE2SHA3,
1071+
FeatureFPAC]);
10711072

10721073
// ETE and TRBE are future architecture extensions. We temporarily enable them
10731074
// by default for users targeting generic AArch64. The extensions do not

0 commit comments

Comments
 (0)