mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 22:10:01 +00:00
ir-jit: Fix bug in ext
This commit is contained in:
parent
7d4774db4c
commit
e750987052
@ -224,7 +224,6 @@ void IRJit::Comp_ShiftType(MIPSOpcode op) {
|
||||
|
||||
void IRJit::Comp_Special3(MIPSOpcode op) {
|
||||
CONDITIONAL_DISABLE;
|
||||
|
||||
MIPSGPReg rs = _RS;
|
||||
MIPSGPReg rt = _RT;
|
||||
|
||||
@ -237,9 +236,13 @@ void IRJit::Comp_Special3(MIPSOpcode op) {
|
||||
return;
|
||||
|
||||
switch (op & 0x3f) {
|
||||
case 0x0: //ext
|
||||
ir.Write(IROp::Shl, rt, rs);
|
||||
ir.Write(IROp::AndConst, rt, rt, ir.AddConstant(mask));
|
||||
case 0x0:
|
||||
if (pos != 0) {
|
||||
ir.Write(IROp::ShrImm, rt, rs, pos);
|
||||
ir.Write(IROp::AndConst, rt, rt, ir.AddConstant(mask));
|
||||
} else {
|
||||
ir.Write(IROp::AndConst, rt, rs, ir.AddConstant(mask));
|
||||
}
|
||||
break;
|
||||
|
||||
case 0x4: //ins
|
||||
|
Loading…
Reference in New Issue
Block a user