From 363f3f82bbedd05701a1c4cda6c440f833ef7f12 Mon Sep 17 00:00:00 2001 From: Sintendo Date: Mon, 3 Aug 2020 23:58:09 +0200 Subject: [PATCH] DSPJitRegCache: Simplify WriteReg The intent here is to generate a more compact instruction if a 32-bit immediate can be zero-extended to the desired 64-bit immediate. Nowadays the emitter is smart enough to do this for us, so this logic is redundant. --- Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp index ed8af72355..2b2850fe36 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp @@ -835,14 +835,7 @@ void DSPJitRegCache::WriteReg(int dreg, OpArg arg) m_emitter.MOV(32, reg, Imm32(arg.Imm32())); break; case 8: - if ((u32)arg.Imm64() == arg.Imm64()) - { - m_emitter.MOV(64, reg, Imm32((u32)arg.Imm64())); - } - else - { - m_emitter.MOV(64, reg, Imm64(arg.Imm64())); - } + m_emitter.MOV(64, reg, Imm64(arg.Imm64())); break; default: ASSERT_MSG(DSPLLE, 0, "unsupported memory size");