Skip to content

Commit f0e0b7e

Browse files
committed
Review edits
1 parent 1c03537 commit f0e0b7e

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/coreclr/jit/codegenxarch.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9499,8 +9499,6 @@ void CodeGen::genAmd64EmitterUnitTestsCCMP()
94999499
emitter* theEmitter = GetEmitter();
95009500
genDefineTempLabel(genCreateTempLabel());
95019501

9502-
// #ifdef COMMENTOUT
9503-
95049502
// ============
95059503
// Test RR form
95069504
// ============
@@ -9568,7 +9566,6 @@ void CodeGen::genAmd64EmitterUnitTestsCCMP()
95689566
CORINFO_FIELD_HANDLE hnd = theEmitter->emitFltOrDblConst(1.0f, EA_4BYTE);
95699567
theEmitter->emitIns_R_C(INS_ccmpe, EA_4BYTE, REG_RAX, hnd, 0, INS_OPTS_EVEX_dfv_cf);
95709568
theEmitter->emitIns_R_C(INS_ccmpe, EA_4BYTE, REG_RAX, hnd, 4, INS_OPTS_EVEX_dfv_cf);
9571-
// #endif
95729569
}
95739570

95749571
#endif // defined(DEBUG) && defined(TARGET_AMD64)

src/coreclr/jit/emit.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,8 @@ class emitter
17701770
_idCustom2 = ((value >> 1) & 1);
17711771
_idCustom3 = ((value >> 2) & 1);
17721772
_idCustom4 = ((value >> 3) & 1);
1773+
1774+
assert(value == idGetEvexDFV());
17731775
}
17741776
#endif
17751777

src/coreclr/jit/emitxarch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,12 +581,16 @@ void SetEvexNfIfNeeded(instrDesc* id, insOpts instOptions)
581581
//
582582
void SetEvexDFVIfNeeded(instrDesc* id, insOpts instOptions)
583583
{
584+
#if defined(TARGET_AMD64)
584585
if ((instOptions & INS_OPTS_EVEX_dfv_MASK) != 0)
585586
{
586587
assert(UsePromotedEVEXEncoding());
587588
assert(IsCCMP(id->idIns()));
588589
id->idSetEvexDFV(instOptions);
589590
}
591+
#else
592+
return true;
593+
#endif
590594
}
591595

592596
//------------------------------------------------------------------------

0 commit comments

Comments
 (0)