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.
This commit is contained in:
Sintendo 2020-08-03 23:58:09 +02:00
parent 618d261b91
commit 363f3f82bb
1 changed files with 1 additions and 8 deletions

View File

@ -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()));
}
break;
default:
ASSERT_MSG(DSPLLE, 0, "unsupported memory size");