arm64: Oops, fix flushing zero from an armreg.

This commit is contained in:
Unknown W. Brackets
2015-07-05 11:57:18 -07:00
parent 204c1dc8dd
commit db3dffb44d
4 changed files with 9 additions and 4 deletions
+1
View File
@@ -208,6 +208,7 @@ void Arm64Jit::CompType3(MIPSGPReg rd, MIPSGPReg rs, MIPSGPReg rt, void (ARM64XE
return;
}
// If rd is rhs, we may have lost it in the MapDirtyIn(). lhs was kept.
// This means the rhsImm value was never flushed to rhs, and would be garbage.
if (rd == rhs) {
// Luckily, it was just an imm.
gpr.SetImm(rhs, rhsImm);