File tree 2 files changed +15
-4
lines changed 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -9197,6 +9197,13 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
9197
9197
#ifdef TARGET_XARCH
9198
9198
bool canUseVexEncoding() const
9199
9199
{
9200
+ #ifdef DEBUG
9201
+ if (JitConfig.JitForceEVEXEncoding())
9202
+ {
9203
+ return true;
9204
+ }
9205
+ #endif // DEBUG
9206
+
9200
9207
return compOpportunisticallyDependsOn(InstructionSet_AVX);
9201
9208
}
9202
9209
Original file line number Diff line number Diff line change @@ -1033,23 +1033,27 @@ bool emitter::TakesSimdPrefix(const instrDesc* id) const
1033
1033
//
1034
1034
bool emitter::TakesEvexPrefix(const instrDesc* id) const
1035
1035
{
1036
- if (!emitComp->DoJitStressEvexEncoding())
1036
+ instruction ins = id->idIns();
1037
+
1038
+ if (!IsEvexEncodedInstruction(ins))
1037
1039
{
1038
1040
return false;
1039
1041
}
1040
1042
1041
- instruction ins = id->idIns();
1043
+ if (!emitComp->DoJitStressEvexEncoding())
1044
+ {
1045
+ return false;
1046
+ }
1042
1047
1043
1048
if (HasHighSIMDReg(id))
1044
1049
{
1045
- assert(IsEvexEncodedInstruction(ins));
1046
1050
// TODO-XARCH-AVX512 remove this check once k registers have been implemented
1047
1051
assert(!HasKMaskRegisterDest(ins));
1048
1052
return true;
1049
1053
}
1050
1054
1051
1055
// TODO-XArch-AVX512: Revisit 'HasKMaskRegisterDest()' check once KMask support is added.
1052
- return IsEvexEncodedInstruction(ins) && !HasKMaskRegisterDest(ins);
1056
+ return !HasKMaskRegisterDest(ins);
1053
1057
}
1054
1058
1055
1059
// Intel AVX-512 encoding is defined in "Intel 64 and ia-32 architectures software developer's manual volume 2", Section
You can’t perform that action at this time.
0 commit comments