Skip to content

Commit

Permalink
Merge pull request #6384 from jeffythedragonslayer/master
Browse files Browse the repository at this point in the history
Jit64: fixed some signed to unsigned integer warnings
  • Loading branch information
degasus committed Feb 19, 2018
2 parents be1a736 + caf721f commit a2d2a0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/Core/Core/PowerPC/Jit64/Jit_FloatingPoint.cpp
Expand Up @@ -493,7 +493,8 @@ void Jit64::FloatCompare(UGeckoInstruction inst, bool upper)
UGeckoInstruction next = js.op[1].inst;
if (analyzer.HasOption(PPCAnalyst::PPCAnalyzer::OPTION_CROR_MERGE) &&
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.downcountAmount++;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
Expand Up @@ -352,7 +352,7 @@ bool Jit64::CheckMergedBranch(u32 crf)
((next.OPCD == 19) && (next.SUBOP10 == 528) /* bcctrx */) ||
((next.OPCD == 19) && (next.SUBOP10 == 16) /* bclrx */)) &&
(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()
Expand Down

0 comments on commit a2d2a0a

Please sign in to comment.