mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
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:
@ -835,14 +835,7 @@ void DSPJitRegCache::WriteReg(int dreg, OpArg arg)
|
|||||||
m_emitter.MOV(32, reg, Imm32(arg.Imm32()));
|
m_emitter.MOV(32, reg, Imm32(arg.Imm32()));
|
||||||
break;
|
break;
|
||||||
case 8:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
ASSERT_MSG(DSPLLE, 0, "unsupported memory size");
|
ASSERT_MSG(DSPLLE, 0, "unsupported memory size");
|
||||||
|
Reference in New Issue
Block a user