Jit64: fixed some signed to unsigned integer warnings

This commit is contained in:
Jeff Linahan 2018-02-16 17:41:16 -05:00
parent 6a609e6e3c
commit caf721fb3f
2 changed files with 3 additions and 2 deletions

View File

@ -493,7 +493,8 @@ void Jit64::FloatCompare(UGeckoInstruction inst, bool upper)
UGeckoInstruction next = js.op[1].inst; UGeckoInstruction next = js.op[1].inst;
if (analyzer.HasOption(PPCAnalyst::PPCAnalyzer::OPTION_CROR_MERGE) && if (analyzer.HasOption(PPCAnalyst::PPCAnalyzer::OPTION_CROR_MERGE) &&
CanMergeNextInstructions(1) && next.OPCD == 19 && next.SUBOP10 == 449 && CanMergeNextInstructions(1) && next.OPCD == 19 && next.SUBOP10 == 449 &&
(next.CRBA >> 2) == crf && (next.CRBB >> 2) == crf && (next.CRBD >> 2) == crf) static_cast<u32>(next.CRBA >> 2) == crf && static_cast<u32>(next.CRBB >> 2) == crf &&
static_cast<u32>(next.CRBD >> 2) == crf)
{ {
js.skipInstructions = 1; js.skipInstructions = 1;
js.downcountAmount++; js.downcountAmount++;

View File

@ -352,7 +352,7 @@ bool Jit64::CheckMergedBranch(u32 crf)
((next.OPCD == 19) && (next.SUBOP10 == 528) /* bcctrx */) || ((next.OPCD == 19) && (next.SUBOP10 == 528) /* bcctrx */) ||
((next.OPCD == 19) && (next.SUBOP10 == 16) /* bclrx */)) && ((next.OPCD == 19) && (next.SUBOP10 == 16) /* bclrx */)) &&
(next.BO & BO_DONT_DECREMENT_FLAG) && !(next.BO & BO_DONT_CHECK_CONDITION) && (next.BO & BO_DONT_DECREMENT_FLAG) && !(next.BO & BO_DONT_CHECK_CONDITION) &&
(next.BI >> 2) == crf); static_cast<u32>(next.BI >> 2) == crf);
} }
void Jit64::DoMergedBranch() void Jit64::DoMergedBranch()