mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Avoid a signed/unsigned compare.
This one is pretty pedantic.
This commit is contained in:
parent
e355518549
commit
7c238f4567
@ -56,10 +56,10 @@ void Jit::Comp_FPU3op(u32 op)
|
|||||||
case 2: { //F(fd) = F(fs) * F(ft); //mul
|
case 2: { //F(fd) = F(fs) * F(ft); //mul
|
||||||
u32 nextOp = Memory::Read_Instruction(js.compilerPC + 4);
|
u32 nextOp = Memory::Read_Instruction(js.compilerPC + 4);
|
||||||
// Optimise possible if destination is the same
|
// Optimise possible if destination is the same
|
||||||
if (fd == ((nextOp>>6) & 0x1F)) {
|
if (fd == (int)((nextOp>>6) & 0x1F)) {
|
||||||
// VMUL + VNEG -> VNMUL
|
// VMUL + VNEG -> VNMUL
|
||||||
if (!strcmp(MIPSGetName(nextOp), "neg.s")) {
|
if (!strcmp(MIPSGetName(nextOp), "neg.s")) {
|
||||||
if (fd == ((nextOp>>11) & 0x1F)) {
|
if (fd == (int)((nextOp>>11) & 0x1F)) {
|
||||||
VNMUL(fpr.R(fd), fpr.R(fs), fpr.R(ft));
|
VNMUL(fpr.R(fd), fpr.R(fs), fpr.R(ft));
|
||||||
EatInstruction(nextOp);
|
EatInstruction(nextOp);
|
||||||
}
|
}
|
||||||
|
@ -329,7 +329,7 @@ void JitBlockCache::DestroyBlock(int block_num, bool invalidate)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
b.invalid = true;
|
b.invalid = true;
|
||||||
if ((int)Memory::ReadUnchecked_U32(b.originalAddress) == GetEmuHackOpForBlock(block_num))
|
if (Memory::ReadUnchecked_U32(b.originalAddress) == GetEmuHackOpForBlock(block_num))
|
||||||
Memory::WriteUnchecked_U32(b.originalFirstOpcode, b.originalAddress);
|
Memory::WriteUnchecked_U32(b.originalFirstOpcode, b.originalAddress);
|
||||||
b.normalEntry = 0;
|
b.normalEntry = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user