target/m68k: Correct duplicate conditions in gen_cc_cond

This commit is contained in:
Lioncash 2018-03-15 23:07:26 -04:00
parent 31e93018f3
commit acb7231650
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -1348,7 +1348,7 @@ static void gen_cc_cond(DisasCompare *c, DisasContext *s, int cond)
case 5: /* CS (C) */
/* Some cases fold C into X. */
if (op == CC_OP_ADDB || op == CC_OP_ADDW || op == CC_OP_ADDL ||
op == CC_OP_ADDB || op == CC_OP_ADDW || op == CC_OP_ADDL) {
op == CC_OP_SUBB || op == CC_OP_SUBW || op == CC_OP_SUBL) {
tcond = TCG_COND_NE;
c->v1 = tcg_ctx->QREG_CC_X;
goto done;