From cd283089aa29a3137d01244d0e87aee4ec67f7c0 Mon Sep 17 00:00:00 2001 From: Ced2911 Date: Fri, 15 Nov 2013 14:24:45 +0100 Subject: [PATCH] [Jit] Mov2ir optimisation --- Common/ppcEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/ppcEmitter.cpp b/Common/ppcEmitter.cpp index 6d1272fa10..78390388e9 100644 --- a/Common/ppcEmitter.cpp +++ b/Common/ppcEmitter.cpp @@ -488,10 +488,10 @@ namespace PpcGen { // Quick Call // dest = LIS(imm) + ORI(+imm) void PPCXEmitter::MOVI2R(PPCReg dest, unsigned int imm) { - /*if (imm == (unsigned short)imm) { + if ((s32) (s16) (imm) == (s32) (imm)) { // 16bit LI(dest, imm & 0xFFFF); - } else */{ + } else { // HI 16bit LIS(dest, imm>>16); if ((imm & 0xFFFF) != 0) {