mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
for tw/twi instructions, force propagated constant into a register to avoid "a1 cannot be immediate" errors from the emitter
This commit is contained in:
@ -1997,6 +1997,8 @@ void Jit64::twx(UGeckoInstruction inst)
|
||||
|
||||
s32 a = inst.RA;
|
||||
|
||||
gpr.KillImmediate(a, true, false);
|
||||
|
||||
if (inst.OPCD == 3) // twi
|
||||
CMP(32, gpr.R(a), gpr.R(inst.RB));
|
||||
else // tw
|
||||
|
Reference in New Issue
Block a user