@@ -218,7 +218,7 @@ def FeatureAES : SubtargetFeature<"aes", "HasAES", "true",
218
218
[FeatureSSE2]>;
219
219
def FeatureVAES : SubtargetFeature<"vaes", "HasVAES", "true",
220
220
"Promote selected AES instructions to AVX512/AVX registers",
221
- [FeatureAVX , FeatureAES]>;
221
+ [FeatureAVX2 , FeatureAES]>;
222
222
def FeatureTBM : SubtargetFeature<"tbm", "HasTBM", "true",
223
223
"Enable TBM instructions">;
224
224
def FeatureLWP : SubtargetFeature<"lwp", "HasLWP", "true",
@@ -244,7 +244,7 @@ def FeatureSHA : SubtargetFeature<"sha", "HasSHA", "true",
244
244
[FeatureSSE2]>;
245
245
def FeatureSHA512 : SubtargetFeature<"sha512", "HasSHA512", "true",
246
246
"Support SHA512 instructions",
247
- [FeatureAVX ]>;
247
+ [FeatureAVX2 ]>;
248
248
// Processor supports CET SHSTK - Control-Flow Enforcement Technology
249
249
// using Shadow Stack
250
250
def FeatureSHSTK : SubtargetFeature<"shstk", "HasSHSTK", "true",
@@ -254,7 +254,7 @@ def FeatureSM3 : SubtargetFeature<"sm3", "HasSM3", "true",
254
254
[FeatureAVX]>;
255
255
def FeatureSM4 : SubtargetFeature<"sm4", "HasSM4", "true",
256
256
"Support SM4 instructions",
257
- [FeatureAVX ]>;
257
+ [FeatureAVX2 ]>;
258
258
def FeaturePRFCHW : SubtargetFeature<"prfchw", "HasPRFCHW", "true",
259
259
"Support PRFCHW instructions">;
260
260
def FeatureRDSEED : SubtargetFeature<"rdseed", "HasRDSEED", "true",
0 commit comments