Skip to content

Commit 928c4e4

Browse files
committed
Enable APX and AVX10.2 on NVL
1 parent b9301c2 commit 928c4e4

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

llvm/lib/Target/X86/X86.td

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,8 +1334,18 @@ def ProcessorFeatures {
13341334
!listremove(ARLSFeatures, [FeatureWIDEKL]);
13351335

13361336
// Novalake
1337+
list<SubtargetFeature> NVLAdditionalFeatures = [FeatureAVX10_2,
1338+
FeatureMOVRS,
1339+
FeatureEGPR,
1340+
FeaturePush2Pop2,
1341+
FeaturePPX,
1342+
FeatureNF,
1343+
FeatureNDD,
1344+
FeatureZU,
1345+
FeatureCCMP,
1346+
FeaturePREFETCHI];
13371347
list<SubtargetFeature> NVLFeatures =
1338-
!listconcat(PTLFeatures, [FeaturePREFETCHI]);
1348+
!listconcat(PTLFeatures, NVLAdditionalFeatures);
13391349

13401350
// Clearwaterforest
13411351
list<SubtargetFeature> CWFAdditionalFeatures = [FeaturePREFETCHI,

llvm/lib/TargetParser/X86TargetParser.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ constexpr FeatureBitset FeaturesArrowlakeS =
176176
constexpr FeatureBitset FeaturesPantherlake =
177177
(FeaturesArrowlakeS ^ FeatureWIDEKL);
178178
constexpr FeatureBitset FeaturesNovalake =
179-
FeaturesPantherlake | FeaturePREFETCHI;
179+
FeaturesPantherlake | FeaturePREFETCHI | FeatureAVX10_2 | FeatureMOVRS |
180+
FeatureEGPR | FeatureZU | FeatureCCMP | FeaturePush2Pop2 | FeaturePPX |
181+
FeatureNDD | FeatureNF;
180182
constexpr FeatureBitset FeaturesClearwaterforest =
181183
(FeaturesSierraforest ^ FeatureWIDEKL) | FeatureAVXVNNIINT16 |
182184
FeatureSHA512 | FeatureSM3 | FeatureSM4 | FeaturePREFETCHI | FeatureUSERMSR;

0 commit comments

Comments
 (0)