mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 15:55:31 +01: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:
parent
b801c7f8f1
commit
b70c0ae521
@ -1997,6 +1997,8 @@ void Jit64::twx(UGeckoInstruction inst)
|
|||||||
|
|
||||||
s32 a = inst.RA;
|
s32 a = inst.RA;
|
||||||
|
|
||||||
|
gpr.KillImmediate(a, true, false);
|
||||||
|
|
||||||
if (inst.OPCD == 3) // twi
|
if (inst.OPCD == 3) // twi
|
||||||
CMP(32, gpr.R(a), gpr.R(inst.RB));
|
CMP(32, gpr.R(a), gpr.R(inst.RB));
|
||||||
else // tw
|
else // tw
|
||||||
|
Loading…
x
Reference in New Issue
Block a user