forked from dolphin-emu/dolphin
Fixed some GCC compiler warnings
This commit is contained in:
@@ -1525,14 +1525,14 @@ void Jit64::rlwimix(UGeckoInstruction inst)
|
|||||||
}
|
}
|
||||||
else if (inst.SH)
|
else if (inst.SH)
|
||||||
{
|
{
|
||||||
if (mask == -(1 << inst.SH))
|
if (mask == -(1U << inst.SH))
|
||||||
{
|
{
|
||||||
MOV(32, R(EAX), gpr.R(s));
|
MOV(32, R(EAX), gpr.R(s));
|
||||||
SHL(32, R(EAX), Imm8(inst.SH));
|
SHL(32, R(EAX), Imm8(inst.SH));
|
||||||
AND(32, gpr.R(a), Imm32(~mask));
|
AND(32, gpr.R(a), Imm32(~mask));
|
||||||
OR(32, gpr.R(a), R(EAX));
|
OR(32, gpr.R(a), R(EAX));
|
||||||
}
|
}
|
||||||
else if (mask == (1 << inst.SH) - 1)
|
else if (mask == (1U << inst.SH) - 1)
|
||||||
{
|
{
|
||||||
MOV(32, R(EAX), gpr.R(s));
|
MOV(32, R(EAX), gpr.R(s));
|
||||||
SHR(32, R(EAX), Imm8(32-inst.SH));
|
SHR(32, R(EAX), Imm8(32-inst.SH));
|
||||||
|
@@ -359,4 +359,4 @@ void EmuCodeBlock::JitClearCAOV(bool oe)
|
|||||||
AND(32, M(&PowerPC::ppcState.spr[SPR_XER]), Imm32(~XER_CA_MASK & ~XER_OV_MASK)); //XER.CA, XER.OV = 0
|
AND(32, M(&PowerPC::ppcState.spr[SPR_XER]), Imm32(~XER_CA_MASK & ~XER_OV_MASK)); //XER.CA, XER.OV = 0
|
||||||
else
|
else
|
||||||
AND(32, M(&PowerPC::ppcState.spr[SPR_XER]), Imm32(~XER_CA_MASK)); //XER.CA = 0
|
AND(32, M(&PowerPC::ppcState.spr[SPR_XER]), Imm32(~XER_CA_MASK)); //XER.CA = 0
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user