[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:
Ryan Houdek 2015-01-18 16:42:30 -06:00
parent 37a770bb9f
commit 4547b64959
1 changed files with 2 additions and 2 deletions

View File

@ -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]));