diff --git a/Core/MIPS/ARM64/Arm64CompLoadStore.cpp b/Core/MIPS/ARM64/Arm64CompLoadStore.cpp index 284d5b0024..8e7e3f45ca 100644 --- a/Core/MIPS/ARM64/Arm64CompLoadStore.cpp +++ b/Core/MIPS/ARM64/Arm64CompLoadStore.cpp @@ -352,7 +352,7 @@ namespace MIPSComp { gpr.MapRegAsPointer(rs); Arm64Gen::ARM64Reg ar; - if (gpr.IsImm(rt) && gpr.GetImm(rt) == 0) { + if (!load && gpr.IsImm(rt) && gpr.GetImm(rt) == 0) { // Can just store from the zero register directly. ar = WZR; } else {