Merge pull request #12488 from JosJuice/jitarm64-psq-stxx-w0

JitArm64: Remove unnecessary locking of W0 in psq_stXX
This commit is contained in:
Mai 2024-01-15 15:14:59 -05:00 committed by GitHub
commit 6aacbc4c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,9 +27,9 @@ void JitArm64::psq_lXX(UGeckoInstruction inst)
!(m_ppc_state.feature_flags & FEATURE_FLAG_MSR_DR));
// X30 is LR
// X0 is the address
// X1 contains the scale
// X2 is a temporary
// X0 is a temporary
// X1 is the address
// X2 is the scale
// Q0 is the return register
// Q1 is a temporary
const s32 offset = inst.SIMM_12;
@ -156,8 +156,9 @@ void JitArm64::psq_stXX(UGeckoInstruction inst)
!(m_ppc_state.feature_flags & FEATURE_FLAG_MSR_DR));
// X30 is LR
// X0 contains the scale
// X1 is the address
// X0 is a temporary
// X1 is the scale
// X2 is the address
// Q0 is the store register
const s32 offset = inst.SIMM_12;
@ -204,7 +205,7 @@ void JitArm64::psq_stXX(UGeckoInstruction inst)
}
gpr.Lock(ARM64Reg::W1, ARM64Reg::W2, ARM64Reg::W30);
if (!js.assumeNoPairedQuantize || jo.memcheck || !jo.fastmem)
if (!js.assumeNoPairedQuantize || !jo.fastmem)
gpr.Lock(ARM64Reg::W0);
if (!js.assumeNoPairedQuantize && !jo.fastmem)
gpr.Lock(ARM64Reg::W3);
@ -283,7 +284,7 @@ void JitArm64::psq_stXX(UGeckoInstruction inst)
gpr.Unlock(ARM64Reg::W1, ARM64Reg::W2, ARM64Reg::W30);
fpr.Unlock(ARM64Reg::Q0);
if (!js.assumeNoPairedQuantize || jo.memcheck || !jo.fastmem)
if (!js.assumeNoPairedQuantize || !jo.fastmem)
gpr.Unlock(ARM64Reg::W0);
if (!js.assumeNoPairedQuantize && !jo.fastmem)
gpr.Unlock(ARM64Reg::W3);