Skip to content

Commit 952c8d3

Browse files
authored
[AArch64] Enable FEAT_SVE2p1 by default for Armv9.4-A and later (#120753)
The ArmARM says: ``` "In an Armv9.4 implementation, if FEAT_SVE2 is implemented, FEAT_SVE2p1 is implemented." ``` Since FEAT_SVE2 is already enabled for Armv9.0-A and later, then FEAT_SVE2p1 should also be enabled by default.
1 parent 6780ab3 commit 952c8d3

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

clang/test/Driver/print-enabled-extensions/aarch64-armv9.4-a.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
// CHECK-NEXT: FEAT_SSBS, FEAT_SSBS2 Enable Speculative Store Bypass Safe bit
5959
// CHECK-NEXT: FEAT_SVE Enable Scalable Vector Extension (SVE) instructions
6060
// CHECK-NEXT: FEAT_SVE2 Enable Scalable Vector Extension 2 (SVE2) instructions
61+
// CHECK-NEXT: FEAT_SVE2p1 Enable Scalable Vector Extension 2.1 instructions
6162
// CHECK-NEXT: FEAT_TLBIOS, FEAT_TLBIRANGE Enable Armv8.4-A TLB Range and Maintenance instructions
6263
// CHECK-NEXT: FEAT_TRBE Enable Trace Buffer Extension
6364
// CHECK-NEXT: FEAT_TRF Enable Armv8.4-A Trace extension

clang/test/Driver/print-enabled-extensions/aarch64-armv9.5-a.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
// CHECK-NEXT: FEAT_SSBS, FEAT_SSBS2 Enable Speculative Store Bypass Safe bit
6262
// CHECK-NEXT: FEAT_SVE Enable Scalable Vector Extension (SVE) instructions
6363
// CHECK-NEXT: FEAT_SVE2 Enable Scalable Vector Extension 2 (SVE2) instructions
64+
// CHECK-NEXT: FEAT_SVE2p1 Enable Scalable Vector Extension 2.1 instructions
6465
// CHECK-NEXT: FEAT_TLBIOS, FEAT_TLBIRANGE Enable Armv8.4-A TLB Range and Maintenance instructions
6566
// CHECK-NEXT: FEAT_TRBE Enable Trace Buffer Extension
6667
// CHECK-NEXT: FEAT_TRF Enable Armv8.4-A Trace extension

llvm/lib/Target/AArch64/AArch64Features.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ def HasV9_3aOps : Architecture64<9, 3, "a", "v9.3a",
874874
def HasV9_4aOps : Architecture64<9, 4, "a", "v9.4a",
875875
[HasV8_9aOps, HasV9_3aOps],
876876
!listconcat(HasV9_3aOps.DefaultExts, [FeatureSPECRES2, FeatureCSSC,
877-
FeatureRASv2])>;
877+
FeatureRASv2, FeatureSVE2p1])>;
878878
def HasV9_5aOps : Architecture64<9, 5, "a", "v9.5a",
879879
[HasV9_4aOps, FeatureCPA],
880880
!listconcat(HasV9_4aOps.DefaultExts, [FeatureCPA, FeatureLUT, FeatureFAMINMAX])>;

0 commit comments

Comments
 (0)