mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-07-11 01:24:22 +02:00
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:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user