JitArm64: Fix twx

The conditions were in reverse order (maybe someone was reading the
PowerPC manual and forgot about IBM's bit numbering), and additionally
the two conditions for unsigned comparison were wrong.

Fixes https://bugs.dolphin-emu.org/issues/14054.
This commit is contained in:
JosJuice
2026-05-31 11:47:15 +02:00
parent 9e7d340f22
commit a6278030c2
@@ -327,7 +327,7 @@ void JitArm64::twx(UGeckoInstruction inst)
CMP(gpr.R(a), gpr.R(inst.RB));
}
constexpr std::array<CCFlags, 5> conditions{{CC_LT, CC_GT, CC_EQ, CC_VC, CC_VS}};
constexpr std::array<CCFlags, 5> conditions{{CC_HI, CC_LO, CC_EQ, CC_GT, CC_LT}};
Common::SmallVector<FixupBranch, conditions.size()> fixups;
for (size_t i = 0; i < conditions.size(); i++)