Skip to content

Commit e6af1a3

Browse files
committed
[AArch64] Add FEAT_FPAC to Neoverse V2
This feature is supported in Grace, but wasn't specified in the CPU definition.
1 parent 420c056 commit e6af1a3

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

clang/test/Driver/aarch64-mcpu-native.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
// CHECK-FEAT-NV2: FEAT_FHM Enable FP16 FML instructions
2323
// CHECK-FEAT-NV2: FEAT_FP Enable Armv8.0-A Floating Point Extensions
2424
// CHECK-FEAT-NV2: FEAT_FP16 Enable half-precision floating-point data processing
25+
// CHECK-FEAT-NV2: FEAT_FPAC Enable Armv8.3-A Pointer Authentication Faulting enhancement
2526
// CHECK-FEAT-NV2: 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
2627
// CHECK-FEAT-NV2: FEAT_FlagM Enable Armv8.4-A Flag Manipulation instructions
2728
// CHECK-FEAT-NV2: FEAT_FlagM2 Enable alternative NZCV format for floating point comparisons

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

clang/test/Driver/print-enabled-extensions/aarch64-neoverse-v2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
// CHECK-NEXT: FEAT_FHM Enable FP16 FML instructions
2121
// CHECK-NEXT: FEAT_FP Enable Armv8.0-A Floating Point Extensions
2222
// CHECK-NEXT: FEAT_FP16 Enable half-precision floating-point data processing
23+
// CHECK-NEXT: FEAT_FPAC Enable Armv8.3-A Pointer Authentication Faulting enhancement
2324
// 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
2425
// CHECK-NEXT: FEAT_FlagM Enable Armv8.4-A Flag Manipulation instructions
2526
// CHECK-NEXT: FEAT_FlagM2 Enable alternative NZCV format for floating point comparisons

llvm/lib/Target/AArch64/AArch64Processors.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ def TuneNeoverseV2 : SubtargetFeature<"neoversev2", "ARMProcFamily", "NeoverseV2
555555
FeatureEnableSelectOptimize,
556556
FeatureUseFixedOverScalableIfEqualCost,
557557
FeatureAvoidLDAPUR,
558-
FeaturePredictableSelectIsExpensive]>;
558+
FeaturePredictableSelectIsExpensive,
559+
FeatureFPAC]>;
559560

560561
def TuneNeoverseV3 : SubtargetFeature<"neoversev3", "ARMProcFamily", "NeoverseV3",
561562
"Neoverse V3 ARM processors", [

0 commit comments

Comments
 (0)