Skip to content

Commit

Permalink
JitArm64: Fix divwx BindToRegister condition
Browse files Browse the repository at this point in the history
a is being used both as an immediate and as a register here.
Since it's being used as a register, it must be loaded.
  • Loading branch information
JosJuice committed Oct 1, 2022
1 parent 487a11f commit 8902d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp
Expand Up @@ -1433,7 +1433,7 @@ void JitArm64::divwx(UGeckoInstruction inst)
{
const u32 dividend = gpr.GetImm(a);

gpr.BindToRegister(d, d == b);
gpr.BindToRegister(d, d == a || d == b);

ARM64Reg RB = gpr.R(b);
ARM64Reg RD = gpr.R(d);
Expand Down

0 comments on commit 8902d2f

Please sign in to comment.