mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 04:03:49 +01:00
Common: Maintain C++11 support in sign extend.
This commit is contained in:
1 parent
1b00da2f3a
commit
5d60fa0d0d
23 files changed
+73
-60
No files matched your search
@@ -47,9 +47,9 @@ namespace MIPSComp {
|
||||
void IRFrontend::Comp_IType(MIPSOpcode op) {
|
||||
CONDITIONAL_DISABLE(ALU_IMM);
|
||||
|
||||
s32 simm = (s32)_IMM16; // sign extension
|
||||
u32 uimm = (u16)_IMM16;
|
||||
u32 suimm = (u32)(s32)simm;
|
||||
s32 simm = SignExtend16ToS32(op);
|
||||
u32 suimm = SignExtend16ToU32(op);
|
||||
|
||||
MIPSGPReg rt = _RT;
|
||||
MIPSGPReg rs = _RS;
|
||||
@@ -274,7 +274,7 @@ void IRFrontend::Comp_Allegrex(MIPSOpcode op) {
|
||||
return;
|
||||
|
||||
switch ((op >> 6) & 31) {
|
||||
case 16: // seb // R(rd) = SignExtend8To32(R(rt));
|
||||
case 16: // seb // R(rd) = SignExtend8ToU32(R(rt));
|
||||
ir.Write(IROp::Ext8to32, rd, rt);
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user