Add a stub for clz/clo in x86 jit.

This commit is contained in:
Unknown W. Brackets committed 2013-02-21 01:25:02 -08:00
1 parent 08923c092b
commit 313ffdb495
5 files changed
+33 -3

No files matched your search

+6 -1
View File
@@ -145,7 +145,12 @@ namespace MIPSComp
break;
}
}
void Jit::Comp_RType2(u32 op)
{
DISABLE;
}
void Jit::Comp_RType3(u32 op)
{
int rt = _RT;
+1
View File
@@ -94,6 +94,7 @@ public:
void Comp_Break(u32 op);
void Comp_IType(u32 op);
void Comp_RType2(u32 op);
void Comp_RType3(u32 op);
void Comp_ShiftType(u32 op);
void Comp_Allegrex(u32 op);
+2 -2
View File
@@ -194,8 +194,8 @@ const MIPSInstruction tableSpecial[64] = /// 000000 ...... ...... .......... xxx
INSTR("mtlo", &Jit::Comp_MulDivType, Dis_ToHiloTransfer, Int_MulDivType, IN_RS|OUT_OTHER),
{-2},
{-2},
INSTR("clz", &Jit::Comp_Generic, Dis_RType2, Int_RType2, OUT_RD|IN_RS|IN_RT),
INSTR("clo", &Jit::Comp_Generic, Dis_RType2, Int_RType2, OUT_RD|IN_RS|IN_RT),
INSTR("clz", &Jit::Comp_RType2, Dis_RType2, Int_RType2, OUT_RD|IN_RS|IN_RT),
INSTR("clo", &Jit::Comp_RType2, Dis_RType2, Int_RType2, OUT_RD|IN_RS|IN_RT),
//24
INSTR("mult", &Jit::Comp_MulDivType, Dis_MulDivType, Int_MulDivType, IN_RS|IN_RT|OUT_OTHER),
+23
View File
@@ -158,6 +158,29 @@ namespace MIPSComp
}
}
void Jit::Comp_RType2(u32 op)
{
CONDITIONAL_DISABLE;
int rs = _RS;
int rd = _RD;
// Don't change $zr.
if (rd == 0)
return;
switch (op & 63)
{
case 22: //clz
DISABLE;
break;
case 23: //clo
DISABLE;
break;
default:
DISABLE;
}
}
static u32 RType3_ImmAdd(const u32 a, const u32 b)
{
return a + b;
+1
View File
@@ -171,6 +171,7 @@ public:
void Comp_Break(u32 op);
void Comp_IType(u32 op);
void Comp_RType2(u32 op);
void Comp_RType3(u32 op);
void Comp_ShiftType(u32 op);
void Comp_Allegrex(u32 op);