@@ -1493,7 +1493,7 @@ emitter::code_t emitter::AddEvexPrefix(const instrDesc* id, code_t code, emitAtt
14931493 // ymm embedded rounding case.
14941494 if (attr == EA_32BYTE)
14951495 {
1496- assert(emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2));
1496+ assert(emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2) || emitComp->canUseAVX10v2() );
14971497 code &= ~(uBIT_IN_BYTE_EVEX_PREFIX);
14981498 }
14991499
@@ -2237,7 +2237,7 @@ emitter::code_t emitter::emitExtractEvexPrefix(instruction ins, code_t& code) co
22372237 if (sizePrefix == 0)
22382238 {
22392239 // no simd prefix for EVEX2 - AVX10.2 and above
2240- assert(emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2));
2240+ assert(emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2) || emitComp->canUseAVX10v2() );
22412241 }
22422242 else if (isPrefix(sizePrefix))
22432243 {
@@ -2285,7 +2285,7 @@ emitter::code_t emitter::emitExtractEvexPrefix(instruction ins, code_t& code) co
22852285 // 1. An escape byte 0F (For isa before AVX10.2)
22862286 // 2. A map number from 0 to 7 (For AVX10.2 and above)
22872287 leadingBytes = check;
2288- assert(leadingBytes == 0x0F || (emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2) &&
2288+ assert(leadingBytes == 0x0F || (( emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2) || emitComp->canUseAVX10v2() ) &&
22892289 leadingBytes >= 0x00 && leadingBytes <= 0x07));
22902290
22912291 // Get rid of both sizePrefix and escape byte
@@ -2307,7 +2307,7 @@ emitter::code_t emitter::emitExtractEvexPrefix(instruction ins, code_t& code) co
23072307 // 1. the byte in position 11 must be an escape byte.
23082308 // 2. the byte in position 11 must be a map number from 0 to 7.
23092309 leadingBytes = (code >> 16) & 0xFF;
2310- assert(leadingBytes == 0x0F || (emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2) &&
2310+ assert(leadingBytes == 0x0F || (( emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2) || emitComp->canUseAVX10v2() ) &&
23112311 leadingBytes >= 0x00 && leadingBytes <= 0x07));
23122312 code &= 0xFFFF;
23132313 }
@@ -2348,7 +2348,7 @@ emitter::code_t emitter::emitExtractEvexPrefix(instruction ins, code_t& code) co
23482348
23492349 case 0x05:
23502350 {
2351- assert(emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2));
2351+ assert(emitComp->compIsaSupportedDebugOnly(InstructionSet_AVX10v2) || emitComp->canUseAVX10v2() );
23522352 evexPrefix |= (0x05 << 16);
23532353 break;
23542354 }
0 commit comments