[Jit] Mov2ir optimisation

This commit is contained in:
Ced2911 2013-11-15 14:24:45 +01:00 committed by Unknown W. Brackets
parent 38a59cca95
commit cd283089aa

View File

@ -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) {