mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
[AArch64] Fixe a bug in constant propagated ComputeRC.
Must not have been thinking, we do want to sign extend when the highest bit is set.
This commit is contained in:
parent
37a770bb9f
commit
4547b64959
@ -31,8 +31,8 @@ void JitArm64::ComputeRC(u32 imm, int crf)
|
||||
ARM64Reg WA = gpr.GetReg();
|
||||
ARM64Reg XA = EncodeRegTo64(WA);
|
||||
|
||||
MOVI2R(WA, imm);
|
||||
if (!(imm & 0x80000000))
|
||||
MOVI2R(XA, imm);
|
||||
if (imm & 0x80000000)
|
||||
SXTW(XA, WA);
|
||||
|
||||
STR(INDEX_UNSIGNED, XA, X29, PPCSTATE_OFF(cr_val[crf]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user