diff --git a/src/jit/morph.cpp b/src/jit/morph.cpp index 27baf3967744..c6d388a67f5a 100644 --- a/src/jit/morph.cpp +++ b/src/jit/morph.cpp @@ -12766,7 +12766,11 @@ GenTree* Compiler::fgMorphSmpOp(GenTree* tree, MorphAddrContext* mac) oper = (oper == GT_LE) ? GT_EQ : GT_NE; tree->SetOper(oper, GenTree::PRESERVE_VN); tree->gtFlags &= ~GTF_UNSIGNED; - goto CM_EQ_OP; + + if (op1->OperIs(GT_MOD)) + { + goto CM_EQ_OP; + } } } }