x86jit/ppcjit: Correct some bad sltiu compares.

This commit is contained in:
Unknown W. Brackets committed 2014-09-02 08:04:22 -07:00
1 parent b2f5efaa50
commit 4a1514730f
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -146,7 +146,7 @@ namespace MIPSComp
case 11: //sltiu
if (gpr.IsImm(rs))
{
gpr.SetImm(rt, gpr.GetImm(rs) < uimm);
gpr.SetImm(rt, gpr.GetImm(rs) < suimm);
break;
} else {
//DISABLE;
@@ -154,7 +154,7 @@ namespace MIPSComp
PPCReg ppc_rt = gpr.R(rt);
ADDI(SREG, R0, uimm);
ADDI(SREG, R0, suimm);
SUBFC(ppc_rt, SREG, gpr.R(rs));
SUBFE(ppc_rt, ppc_rt, ppc_rt);
NEG(ppc_rt, ppc_rt);