:option:16:insn-bit-size:16
:option:16:hi-bit-nr:15
:option:16:insn-specifying-widths:true
+:option:16:gen-delayed-branch:true
// IGEN config - mipsI..
:option:32:insn-bit-size:32
:option:32:hi-bit-nr:31
:option:32:insn-specifying-widths:true
+:option:32:gen-delayed-branch:true
// Generate separate simulators for each target
:internal:::illegal
{
sim_io_eprintf (SD, "Illegal instruction at address 0x%lx\n",
- (unsigned long) cia);
+ (unsigned long) CIA);
sim_engine_halt (SD, CPU, NULL, cia, sim_signalled, SIGILL);
}
*tx19:
// end-sanitize-tx19
{
- ALU32_BEGIN (GPR (RS));
- ALU32_ADD (GPR (RT));
- ALU32_END (GPR (RD));
+ ALU32_BEGIN (GPR[RS]);
+ ALU32_ADD (GPR[RT]);
+ ALU32_END (GPR[RD]);
}
*tx19:
// end-sanitize-tx19
{
- ALU32_BEGIN (GPR (RS));
+ ALU32_BEGIN (GPR[RS]);
ALU32_ADD (EXTEND16 (IMMEDIATE));
- ALU32_END (GPR (RT));
+ ALU32_END (GPR[RT]);
}
*tx19:
// end-sanitize-tx19
{
- signed32 temp = GPR (RS) + EXTEND16 (IMMEDIATE);
- GPR (RT) = EXTEND32 (temp);
+ signed32 temp = GPR[RS] + EXTEND16 (IMMEDIATE);
+ GPR[RT] = EXTEND32 (temp);
}
*tx19:
// end-sanitize-tx19
{
- signed32 temp = GPR (RS) + GPR (RT);
- GPR (RD) = EXTEND32 (temp);
+ signed32 temp = GPR[RS] + GPR[RT];
+ GPR[RD] = EXTEND32 (temp);
}
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = GPR (RS) & GPR (RT);
+ GPR[RD] = GPR[RS] & GPR[RT];
}
*tx19:
// end-sanitize-tx19
{
- GPR (RT) = GPR (RS) & IMMEDIATE;
+ GPR[RT] = GPR[RS] & IMMEDIATE;
}
*tx19:
// end-sanitize-tx19
{
- /* NOTE: The branch occurs AFTER the next instruction has been
- executed */
- if (GPR (RS) == GPR (RT))
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ if (GPR[RS] == GPR[RT])
+ DSPC = (PC + offset);
}
*tx19:
// end-sanitize-tx19
{
- /* NOTE: The branch occurs AFTER the next instruction has been
- executed */
- if (GPR (RS) == GPR (RT))
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
- else
- NULLIFY();
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ if (GPR[RS] == GPR[RT])
+ DSPC = (PC + offset);
+ else
+ NULLIFY_NIA ();
}
*tx19:
// end-sanitize-tx19
{
- /* NOTE: The branch occurs AFTER the next instruction has been
- executed */
- if (GPR (RS) >= 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ if (GPR[RS] >= 0)
+ DSPC = (PC + offset);
}
*tx19:
// end-sanitize-tx19
{
- LR = (CIA + 8);
- /* NOTE: The branch occurs AFTER the next instruction has been
- executed */
- if (GPR (RS) >= 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT();
- }
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ RA = (CIA + 8);
+ if (GPR[RS] >= 0)
+ DSPC = (PC + offset);
}
*tx19:
// end-sanitize-tx19
{
- LR = (CIA + 8);
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ RA = (CIA + 8);
/* NOTE: The branch occurs AFTER the next instruction has been
executed */
- if (GPR (RS) >= 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ if (GPR[RS] >= 0)
+ DSPC = (PC + offset);
else
- NULLIFY ();
+ NULLIFY_NIA ();
}
*tx19:
// end-sanitize-tx19
{
- /* NOTE: The branch occurs AFTER the next instruction has been
- executed */
- if (GPR (RS) >= 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT();
- }
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ if (GPR[RS] >= 0)
+ DSPC = (PC + offset);
else
- NULLIFY ();
+ NULLIFY_NIA ();
}
*tx19:
// end-sanitize-tx19
{
- /* NOTE: The branch occurs AFTER the next instruction has been
- executed */
- if (GPR (RS) > 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ if (GPR[RS] > 0)
+ DSPC = (PC + offset);
}
*tx19:
// end-sanitize-tx19
{
+ address_word offset = EXTEND16 (OFFSET) << 2;
/* NOTE: The branch occurs AFTER the next instruction has been
executed */
- if (GPR (RS) > 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ if (GPR[RS] > 0)
+ DSPC = (PC + offset);
else
- NULLIFY ();
+ NULLIFY_NIA ();
}
*tx19:
// end-sanitize-tx19
{
+ address_word offset = EXTEND16 (OFFSET) << 2;
/* NOTE: The branch occurs AFTER the next instruction has been
executed */
- if (GPR (RS) <= 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ if (GPR[RS] <= 0)
+ DSPC = (PC + offset);
}
*tx19:
// end-sanitize-tx19
{
+ address_word offset = EXTEND16 (OFFSET) << 2;
/* NOTE: The branch occurs AFTER the next instruction has been
executed */
- if (GPR (RS) <= 0)
+ if (GPR[RS] <= 0)
{
DSPC = (PC + offset);
DELAYSLOT ();
*tx19:
// end-sanitize-tx19
{
- /* NOTE: The branch occurs AFTER the next instruction has been
- executed */
- if (GPR (RS) < 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ if (GPR[RS] < 0)
+ DSPC = (PC + offset);
}
*tx19:
// end-sanitize-tx19
{
- LR = (CIA + 8);
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ RA = (CIA + 8);
/* NOTE: The branch occurs AFTER the next instruction has been
executed */
- if (GPR (RS) < 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ if (GPR[RS] < 0)
+ DSPC = (PC + offset);
}
*tx19:
// end-sanitize-tx19
{
- LR = (CIA + 8);
- /* NOTE: The branch occurs AFTER the next instruction has been
- executed */
- if (GPR (RS) < 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ RA = (CIA + 8);
+ if (GPR[RS] < 0)
+ DSPC = (PC + offset);
else
- NULLIFY ();
+ NULLIFY_NIA ();
}
*tx19:
// end-sanitize-tx19
{
+ address_word offset = EXTEND16 (OFFSET) << 2;
/* NOTE: The branch occurs AFTER the next instruction has been
executed */
- if (GPR (RS) < 0)
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ if (GPR[RS] < 0)
+ DSPC = (PC + offset);
else
- NULLIFY ();
+ NULLIFY_NIA ();
}
*tx19:
// end-sanitize-tx19
{
- /* NOTE: The branch occurs AFTER the next instruction has been
- executed */
- if (GPR (RS) != GPR (RT))
- {
- DSPC = (PC + offset);
- DELAYSLOT ();
- }
+ address_word offset = EXTEND16 (OFFSET) << 2;
+ if (GPR[RS] != GPR[RT])
+ DSPC = (PC + offset);
}
{
/* NOTE: The branch occurs AFTER the next instruction has been
executed */
- if (GPR (RS) != GPR (RT))
+ if (GPR[RS] != GPR[RT])
{
DSPC = (PC + offset);
DELAYSLOT ();
*tx19:
// end-sanitize-tx19
{
- SignalException (BreakPoint, instruction_0);
+ SignalException(BreakPoint, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- decode_coproc (SD_, ZZ, COP_FUN);
+ decode_coproc (SD, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- ALU64_START (GPR (RS));
- ALU64_ADD (GPR (RT));
- ALU64_RESULT (GPR (RT));
+ ALU64_BEGIN (GPR[RS]);
+ ALU64_ADD (GPR[RT]);
+ ALU64_END (GPR[RT]);
}
*tx19:
// end-sanitize-tx19
{
- ALU64_START (GPR (RS));
+ ALU64_BEGIN (GPR[RS]);
ALU64_ADD (EXTEND16 (IMMEDIATE));
- ALU64_RESULT (GPR (RT));
+ ALU64_END (GPR[RT]);
}
*tx19:
// end-sanitize-tx19
{
- GPR (RT) = GPR (RS) + EXTEND16 (immediate);
+ GPR[RT] = GPR[RS] + EXTEND16 (immediate);
}
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = GPR (RS) + GPR (RT);
+ GPR[RD] = GPR[RS] + GPR[RT];
}
{
CHECKHILO ("Division");
{
- signed64 n = GPR (RS);
- signed64 d = GPR (RT);
+ signed64 n = GPR[RS];
+ signed64 d = GPR[RT];
if (d == 0)
{
LO = SIGNED64 (0x8000000000000000);
{
CHECKHILO ("Division");
{
- unsigned64 n = GPR (RS);
- unsigned64 d = GPR (RT);
+ unsigned64 n = GPR[RS];
+ unsigned64 d = GPR[RT];
if (d == 0)
{
LO = SIGNED64 (0x8000000000000000);
{
CHECKHILO("Division");
{
- signed32 n = GPR (RS);
- signed32 d = GPR (RT);
+ signed32 n = GPR[RS];
+ signed32 d = GPR[RT];
if (d == 0)
{
LO = EXTEND32 (0x80000000);
HI = EXTEND32 (0);
}
- else if (d == -1 && q == 0x80000000)
+ else if (d == -1 && d == 0x80000000)
{
LO = EXTEND32 (0x80000000);
HI = EXTEND32 (0);
{
CHECKHILO ("Division");
{
- unsigned32 n = GPR (RS);
- unsigned32 d = GPR (RT);
+ unsigned32 n = GPR[RS];
+ unsigned32 d = GPR[RT];
if (d == 0)
{
LO = EXTEND32 (0x80000000);
{
CHECKHILO ("Multiplication");
{
- signed64 op1 = GPR (RS);
- signed64 op2 = GPR (RT);
+ signed64 op1 = GPR[RS];
+ signed64 op2 = GPR[RT];
unsigned64 lo;
unsigned64 hi;
unsigned64 m00;
unsigned64 m10;
unsigned64 m11;
unsigned64 mid;
- unsigned64 temp;
int sign = 0;
/* make it unsigned */
if (op1 < 0)
{
CHECKHILO ("Multiplication");
{
- signed64 op1 = GPR (RS);
- signed64 op2 = GPR (RT);
+ signed64 op1 = GPR[RS];
+ signed64 op2 = GPR[RT];
unsigned64 lo;
unsigned64 hi;
unsigned64 m00;
unsigned64 m10;
unsigned64 m11;
unsigned64 mid;
- unsigned64 temp;
/* multuply out the 4 sub products */
m00 = (VL4_8 (op1) * VL4_8 (op2));
m10 = (VH4_8 (op1) * VL4_8 (op2));
}
-00000000000,5.RT,5.RD,5.SA,111000:SPECIAL:64::DSLL
+00000000000,5.RT,5.RD,5.SHIFT,111000:SPECIAL:64::DSLL
"dsll r<RD>, r<RT>, <SA>"
*mipsIII:
*mipsIV:
*tx19:
// end-sanitize-tx19
{
- s = SA;
- GPR (RD) = GPR (RT) << s;
+ int s = SA;
+ GPR[RD] = GPR[RT] << s;
}
-00000000000,5.RT,5.RD,5.SA,111100:SPECIAL:64::DSLL32
+00000000000,5.RT,5.RD,5.SHIFT,111100:SPECIAL:64::DSLL32
"dsll32 r<RD>, r<RT>, <SA>"
*mipsIII:
*mipsIV:
*tx19:
// end-sanitize-tx19
{
- s = 32 + SA;
- GPR (RD) = GPR (RT) << s;
+ int s = 32 + SA;
+ GPR[RD] = GPR[RT] << s;
}
*tx19:
// end-sanitize-tx19
{
- s = MASKED64 (GPR (RS), 5, 0);
- GPR (RD) = GPR (RT) << s;
+ int s = MASKED64 (GPR[RS], 5, 0);
+ GPR[RD] = GPR[RT] << s;
}
-00000000000,5.RT,5.RD,5.SA,111011:SPECIAL:64::DSRA
+00000000000,5.RT,5.RD,5.SHIFT,111011:SPECIAL:64::DSRA
"dsra r<RD>, r<RT>, <SA>"
*mipsIII:
*mipsIV:
*tx19:
// end-sanitize-tx19
{
- s = SA;
- GPR (RD) = ((signed64) GPR (RT)) >> s;
+ int s = SA;
+ GPR[RD] = ((signed64) GPR[RT]) >> s;
}
-00000000000,5.RT,5.RD,5.SA,111111:SPECIAL:64::DSRA32
+00000000000,5.RT,5.RD,5.SHIFT,111111:SPECIAL:64::DSRA32
"dsra32 r<RT>, r<RD>, <SA>"
*mipsIII:
*mipsIV:
*tx19:
// end-sanitize-tx19
{
- s = 32 + SA;
- GPR (RD) = ((signed64) GPR (RT)) >> s;
+ int s = 32 + SA;
+ GPR[RD] = ((signed64) GPR[RT]) >> s;
}
*tx19:
// end-sanitize-tx19
{
- int s = MASKED64 (GPR (RS), 5, 0);
- GPR (RD) = ((signed64) GPR (RT)) >> s;
+ int s = MASKED64 (GPR[RS], 5, 0);
+ GPR[RD] = ((signed64) GPR[RT]) >> s;
}
-00000000000,5.RT,5.RD,5.SA,111010:SPECIAL:64::DSRL
+00000000000,5.RT,5.RD,5.SHIFT,111010:SPECIAL:64::DSRL
"dsrav r<RD>, r<RT>, <SA>"
*mipsIII:
*mipsIV:
// end-sanitize-tx19
{
int s = SA;
- GPR (RD) = (unsigned64) GPR (RT) >> s;
+ GPR[RD] = (unsigned64) GPR[RT] >> s;
}
-00000000000,5.RT,5.RD,5.SA,111110:SPECIAL:64::DSRL32
+00000000000,5.RT,5.RD,5.SHIFT,111110:SPECIAL:64::DSRL32
"dsrl32 r<RD>, r<RT>, <SA>"
*mipsIII:
*mipsIV:
// end-sanitize-tx19
{
int s = 32 + SA;
- GPR (RD) = (unsigned64) GPR (RT) >> s;
+ GPR[RD] = (unsigned64) GPR[RT] >> s;
}
*tx19:
// end-sanitize-tx19
{
- int s = MASKED64 (GPR (RS), 5, 0);
- GPR (RD) = (unsigned64) GPR (RT) >> s;
+ int s = MASKED64 (GPR[RS], 5, 0);
+ GPR[RD] = (unsigned64) GPR[RT] >> s;
}
*tx19:
// end-sanitize-tx19
{
- ALU64_BEGIN (GPR (RS));
- ALU64_SUB (GPR (RT));
- ALU64_END (GPR (RD));
+ ALU64_BEGIN (GPR[RS]);
+ ALU64_SUB (GPR[RT]);
+ ALU64_END (GPR[RD]);
}
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = GPR (RS) - GPR (RT);
+ GPR[RD] = GPR[RS] - GPR[RT];
}
{
/* NOTE: The region used is that of the delay slot and NOT the
current instruction */
- address_word region = NIA & MASK (63, 28);
+ address_word region = cia.dp & MASK (63, 28);
DSPC = region | (INSTR_INDEX << 2);
- DELAYSLOT ();
- /* FIXME-WAS: ??? Gdb gets confused if the PC is sign-extended, so
- we just truncate it to 32 bits here. -- DSPC = VL4_8 (DSPC); */
}
{
/* NOTE: The region used is that of the delay slot and NOT the
current instruction */
- address_word region = NIA & MASK (63, 28);
- GPR (31) = CIA + 8;
+ address_word region = cia.dp & MASK (63, 28);
+ GPR[31] = CIA + 8;
DSPC = region | (INSTR_INDEX << 2);
- DELAYSLOT ();
- /* FIXME-WAS: ??? Gdb gets confused if the PC is sign-extended, so
- we just truncate it to 32 bits here. -- DSPC = VL4_8 (DSPC); */
}
*tx19:
// end-sanitize-tx19
{
- address_word temp = GPR (RS);
- GPR (RD) = CIA + 8;
+ address_word temp = GPR[RS];
+ GPR[RD] = CIA + 8;
DSPC = temp;
- DELAYSLOT ();
- /* FIXME-WAS: ??? Gdb gets confused if the PC is sign-extended, so
- we just truncate it to 32 bits here. -- DSPC = VL4_8 (DSPC); */
}
*tx19:
// end-sanitize-tx19
{
- DSPC = GPR (RS);
- DELAYSLOT ();
- /* FIXME-WAS: ??? Gdb gets confused if the PC is sign-extended, so
- we just truncate it to 32 bits here. -- DSPC = VL4_8 (DSPC); */
+ DSPC = GPR[RS];
}
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
uword64 vaddr = ((uword64)op1 + offset);
uword64 paddr;
uword64 memval1 = 0;
uword64 mask = 0x7;
unsigned int shift = 0;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_BYTE,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 0;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_BYTE,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 4;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
LoadMemory(&memval,&memval1,uncached,AccessLength_DOUBLEWORD,paddr,vaddr,isDATA,isREAL);
GPR[destreg] = memval;
}
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 4;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
LoadMemory(&memval,&memval1,uncached,AccessLength_DOUBLEWORD,paddr,vaddr,isDATA,isREAL);
COP_LD(((instruction >> 26) & 0x3),destreg,memval);;
}
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 1) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 1;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_HALFWORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 1) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 1;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_HALFWORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 2;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_WORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 4;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
LoadMemory(&memval,&memval1,uncached,AccessLength_DOUBLEWORD,paddr,vaddr,isDATA,isREAL);
GPR[destreg] = memval;
LLBIT = 1;
*tx19:
// end-sanitize-tx19
{
- unsigned32 instruction = instruction_0;
- t_reg op2 UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- {
- GPR[destreg] = (op2 << 16);
- }
+ GPR[RT] = EXTEND32 (IMMEDIATE << 16);
}
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 2;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_WORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 2;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_WORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 2;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_WORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = HI;
+ GPR[RD] = HI;
HIACCESS = 3;
}
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = LO;
+ GPR[RD] = LO;
LOACCESS = 3; /* 3rd instruction will be safe */
}
*r5900:
// end-sanitize-r5900
{
- if (GPR (RT) != 0)
- GPR (RD) = GPR (RS);
+ if (GPR[RT] != 0)
+ GPR[RD] = GPR[RS];
}
*r5900:
// end-sanitize-r5900
{
- if (GPR (RT) == 0)
- GPR (RD) = GPR (RS);
+ if (GPR[RT] == 0)
+ GPR[RD] = GPR[RS];
}
// end-sanitize-tx19
{
if (HIACCESS != 0)
- sim_warning ("MT (move-to) over-writing HI register value");
- HI = GPR (RS);
+ sim_io_eprintf (sd, "MT (move-to) over-writing HI register value\n");
+ HI = GPR[RS];
HIACCESS = 3; /* 3rd instruction will be safe */
}
// end-sanitize-tx19
{
if (LOACCESS != 0)
- sim_warning ("MT (move-to) over-writing LO register value");
- LO = GPR (RS);
+ sim_io_eprintf (sd, "MT (move-to) over-writing LO register value\n");
+ LO = GPR[RS];
LOACCESS = 3; /* 3rd instruction will be safe */
}
{
signed64 prod;
CHECKHILO ("Multiplication");
- prod = (((signed64)(signed32) GPR (RS))
- * ((signed64)(signed32) GPR (RT)));
+ prod = (((signed64)(signed32) GPR[RS])
+ * ((signed64)(signed32) GPR[RT]));
LO = EXTEND32 (VL4_8 (prod));
HI = EXTEND32 (VH4_8 (prod));
}
{
unsigned64 prod;
CHECKHILO ("Multiplication");
- prod = (((unsigned64)(unsigned32) GPR (RS))
- * ((unsigned64)(unsigned32) GPR (RT)));
+ prod = (((unsigned64)(unsigned32) GPR[RS])
+ * ((unsigned64)(unsigned32) GPR[RT]));
LO = EXTEND32 (VL4_8 (prod));
HI = EXTEND32 (VH4_8 (prod));
}
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = ~ (GPR (RS) | GPR (RT));
+ GPR[RD] = ~ (GPR[RS] | GPR[RT]);
}
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = (GPR (RS) | GPR (RT));
+ GPR[RD] = (GPR[RS] | GPR[RT]);
}
001101,5.RS,5.RT,16.IMMEDIATE:NORMAL:32::ORI
-"ori r<RD>, r<RS>, <IMMEDIATE>"
+"ori r<RT>, r<RS>, <IMMEDIATE>"
*mipsI:
*mipsII:
*mipsIII:
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = (GPR (RS) | IMMEDIATE);
+ GPR[RT] = (GPR[RS] | IMMEDIATE);
}
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int hint UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int hint = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 1) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
}
-00000000000,5.RT,5.RD,5.SA,000000:SPECIAL:32::SLL
-"sll r<RD>, r<RT>, <SA>"
+00000000000,5.RT,5.RD,5.SHIFT,000000:SPECIAL:32::SLL
+"sll r<RD>, r<RT>, <SHIFT>"
*mipsI:
*mipsII:
*mipsIII:
*tx19:
// end-sanitize-tx19
{
- int s = SA;
- unsigned32 temp = (GPR (RT) << s);
- GPR (RD) = EXTEND32 (temp);
+ int s = SHIFT;
+ unsigned32 temp = (GPR[RT] << s);
+ GPR[RD] = EXTEND32 (temp);
}
-000000,ooooo,5.RT,5.RD,00000000100:SPECIAL:32::SLLV
+000000,5.RS,5.RT,5.RD,00000000100:SPECIAL:32::SLLV
"sllv r<RD>, r<RT>, r<RS>"
*mipsI:
*mipsII:
*tx19:
// end-sanitize-tx19
{
- int s = MASKED (GPR (RS), 4, 0);
- unsigned32 temp = (GPR (RT) << s);
- GPR (RD) = EXTEND32 (temp);
+ int s = MASKED (GPR[RS], 4, 0);
+ unsigned32 temp = (GPR[RT] << s);
+ GPR[RD] = EXTEND32 (temp);
}
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) < GPR (RT))
- GPR (RD) = 1;
- else
- GPR (RD) = 0;
+ GPR[RD] = (GPR[RS] < GPR[RT]);
}
001010,5.RS,5.RT,16.IMMEDIATE:NORMAL:32::SLTI
-"slti r<RD>, r<RS>, <IMMEDIATE>"
+"slti r<RT>, r<RS>, <IMMEDIATE>"
*mipsI:
*mipsII:
*mipsIII:
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) < EXTEND16 (IMMEDIATE))
- GPR (RD) = 1;
- else
- GPR (RD) = 0;
+ GPR[RT] = (GPR[RS] < EXTEND16 (IMMEDIATE));
}
001011,5.RS,5.RT,16.IMMEDIATE:NORMAL:32::SLTIU
-"sltiu r<RD>, r<RS>, <IMMEDIATE>"
+"sltiu r<RT>, r<RS>, <IMMEDIATE>"
*mipsI:
*mipsII:
*mipsIII:
*tx19:
// end-sanitize-tx19
{
- if ((unsigned_word) GPR (RS) < (unsigned_word) EXTEND16 (IMMEDIATE))
- GPR (RD) = 1;
- else
- GPR (RD) = 0;
+ GPR[RT] = ((unsigned_word) GPR[RS] < (unsigned_word) EXTEND16 (IMMEDIATE));
}
000000,5.RS,5.RT,5.RD,00000101011:SPECIAL:32::SLTU
*tx19:
// end-sanitize-tx19
{
- if ((unsigned_word) GPR (RS) < (unsigned_word) GPR (RT))
- GPR (RD) = 1;
- else
- GPR (RD) = 0;
+ GPR[RD] = ((unsigned_word) GPR[RS] < (unsigned_word) GPR[RT]);
}
-000000,00000,5.RT,5.RD,5.SA,000011:SPECIAL:32::SRA
-"sra r<RD>, r<RT>, <SA>"
+000000,00000,5.RT,5.RD,5.SHIFT,000011:SPECIAL:32::SRA
+"sra r<RD>, r<RT>, <SHIFT>"
*mipsI:
*mipsII:
*mipsIII:
*tx19:
// end-sanitize-tx19
{
- int s = SA;
- signed32 temp = (signed32) GPR (RT) >> s;
- GPR (RD) = EXTEND32 (temp);
+ int s = SHIFT;
+ signed32 temp = (signed32) GPR[RT] >> s;
+ GPR[RD] = EXTEND32 (temp);
}
*tx19:
// end-sanitize-tx19
{
- int s = MASKED (GPR (RS), 4, 0);
- signed32 temp = (signed32) GPR (RT) >> s;
- GPR (RD) = EXTEND32 (temp);
+ int s = MASKED (GPR[RS], 4, 0);
+ signed32 temp = (signed32) GPR[RT] >> s;
+ GPR[RD] = EXTEND32 (temp);
}
-000000,00000,5.RT,5.RD,5.SA,000010:SPECIAL:32::SRL
-"srl r<RD>, r<RT>, <SA>"
+000000,00000,5.RT,5.RD,5.SHIFT,000010:SPECIAL:32::SRL
+"srl r<RD>, r<RT>, <SHIFT>"
*mipsI:
*mipsII:
*mipsIII:
*tx19:
// end-sanitize-tx19
{
- int s = SA;
- unsigned32 temp = (unsigned32) GPR (RT) >> s;
- GPR (RD) = EXTEND32 (temp);
+ int s = SHIFT;
+ unsigned32 temp = (unsigned32) GPR[RT] >> s;
+ GPR[RD] = EXTEND32 (temp);
}
*tx19:
// end-sanitize-tx19
{
- int s = MASKED (GPR (RS), 4, 0);
- unsigned32 temp = (unsigned32) GPR (RT) >> s;
- GPR (RD) = EXTEND32 (temp);
+ int s = MASKED (GPR[RS], 4, 0);
+ unsigned32 temp = (unsigned32) GPR[RT] >> s;
+ GPR[RD] = EXTEND32 (temp);
}
*tx19:
// end-sanitize-tx19
{
- ALU32_BEGIN (GPR (RS));
- ALU32_SUB (GPR (RT));
- ALU32_END (GPR (RD));
+ ALU32_BEGIN (GPR[RS]);
+ ALU32_SUB (GPR[RT]);
+ ALU32_END (GPR[RD]);
}
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = EXTEND32 (GPR (RS) - GPR (RT));
+ GPR[RD] = EXTEND32 (GPR[RS] - GPR[RT]);
}
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
*tx19:
// end-sanitize-tx19
{
- SyncOperation (STYPE);
+ SyncOperation (sd, STYPE);
}
*tx19:
// end-sanitize-tx19
{
- SignalException (SystemCall, instruction_0);
+ SignalException(SystemCall, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) == GPR (RT))
- SignalException (Trap, instruction_0);
+ if (GPR[RS] == GPR[RT])
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) == EXTEND16 (IMMEDIATE))
- SignalException (Trap, instruction_0);
+ if (GPR[RS] == EXTEND16 (IMMEDIATE))
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) >= GPR (RT))
- SignalException (Trap, instruction_0);
+ if (GPR[RS] >= GPR[RT])
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) >= EXTEND16 (IMMEDIATE))
- SignalException (Trap, instruction_0);
+ if (GPR[RS] >= EXTEND16 (IMMEDIATE))
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if ((unsigned_word) GPR (RS) >= (unsigned_word) EXTEND16 (IMMEDIATE))
- SignalException (Trap, instruction_0);
+ if ((unsigned_word) GPR[RS] >= (unsigned_word) EXTEND16 (IMMEDIATE))
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if ((unsigned_word) GPR (RS) >= (unsigned_word) GPR (RT))
- SignalException (Trap, instruction_0);
+ if ((unsigned_word) GPR[RS] >= (unsigned_word) GPR[RT])
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) < GPR (RT))
- SignalException (Trap, instruction_0);
+ if (GPR[RS] < GPR[RT])
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) < EXTEND16 (IMMEDIATE))
- SignalException (Trap, instruction_0);
+ if (GPR[RS] < EXTEND16 (IMMEDIATE))
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if ((unsigned_word) GPR (RS) < (unsigned_word) EXTEND16 (IMMEDIATE))
- SignalException (Trap, instruction_0);
+ if ((unsigned_word) GPR[RS] < (unsigned_word) EXTEND16 (IMMEDIATE))
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if ((unsigned_word) GPR (RS) < (unsigned_word) GPR (RT))
- SignalException (Trap, instruction_0);
+ if ((unsigned_word) GPR[RS] < (unsigned_word) GPR[RT])
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) != GPR (RT))
- SignalException (Trap, instruction_0);
+ if (GPR[RS] != GPR[RT])
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- if (GPR (RS) != EXTEND16 (IMMEDIATE))
- SignalException (Trap, instruction_0);
+ if (GPR[RS] != EXTEND16 (IMMEDIATE))
+ SignalException(Trap, instruction_0);
}
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = GPR (RS) ^ GPR (RT);
+ GPR[RD] = GPR[RS] ^ GPR[RT];
}
001110,5.RS,5.RT,16.IMMEDIATE:NORMAL:32::XORI
-"xori r<RD>, r<RS>, <IMMEDIATE>"
+"xori r<RT>, r<RS>, <IMMEDIATE>"
*mipsI:
*mipsII:
*mipsIII:
*tx19:
// end-sanitize-tx19
{
- GPR (RD) = GPR (RS) ^ IMMEDIATE;
+ GPR[RT] = GPR[RS] ^ IMMEDIATE;
}
\f
//
+:%s:::FMT:int fmt
+{
+ switch (fmt)
+ {
+ case fmt_single: return "s";
+ case fmt_double: return "d";
+ case fmt_word: return "w";
+ case fmt_long: return "l";
+ default: return "?";
+ }
+}
+
+:%s:::TF:int tf
+{
+ if (tf)
+ return "t";
+ else
+ return "f";
+}
+
+:%s:::ND:int nd
+{
+ if (nd)
+ return "l";
+ else
+ return "";
+}
+
+:%s:::COND:int cond
+{
+ switch (cond)
+ {
+ case 00: return "f";
+ case 01: return "un";
+ case 02: return "eq";
+ case 03: return "ueq";
+ case 04: return "olt";
+ case 05: return "ult";
+ case 06: return "ole";
+ case 07: return "ule";
+ case 010: return "sf";
+ case 011: return "ngle";
+ case 012: return "seq";
+ case 013: return "ngl";
+ case 014: return "lt";
+ case 015: return "nge";
+ case 016: return "le";
+ case 017: return "ngt";
+ default: return "?";
+ }
+}
+
+
010001,10,3.FMT,00000,5.FS,5.FD,000101:COP1:32,f::ABS.fmt
"abs.%s<FMT> f<FD>, f<FS>"
*mipsI:
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
}
-010001,10,3.FMT,kkkkk,5.FS,5.FD,000000:COP1:32,f::ADD
+
+
+010001,10,3.FMT,5.FT,5.FS,5.FD,000000:COP1:32,f::ADD
"add.%s<FMT> f<FD>, f<FS>, f<FT>"
*mipsI:
*mipsII:
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
- SignalException(ReservedInstruction,instruction);
+ SignalException(ReservedInstruction, instruction);
else
StoreFPR(destreg,format,Add(ValueFPR(fs,format),ValueFPR(ft,format),format));
}
// BC1FL
// BC1T
// BC1TL
-010001,01000,3.CC,1.N,1.DTF,16.OFFSET:COP1S:32,f::BC1
-"bc1%s<ND,TF> <OFFSET>":CC == 0
-"bc1%s<ND,TF> <CC>, <OFFSET>"
+010001,01000,3.CC,1.ND,1.TF,16.OFFSET:COP1S:32,f::BC1
+"bc1%s<TF>%s<ND> <OFFSET>":CC == 0
+"bc1%s<TF>%s<ND> <CC>, <OFFSET>"
*mipsI:
*mipsII:
*mipsIII:
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)(((instruction >> 0) & 0x0000FFFF) << 2),18);
- int boolean UNUSED = ((instruction >> 16) & 0x00000001);
- int likely UNUSED = ((instruction >> 17) & 0x00000001);
- int condition_code UNUSED = ((instruction >> 18) & 0x00000007);
+ signed_word offset = SIGNEXTEND((signed_word)(((instruction >> 0) & 0x0000FFFF) << 2),18);
+ int boolean = ((instruction >> 16) & 0x00000001);
+ int likely = ((instruction >> 17) & 0x00000001);
+ int condition_code = ((instruction >> 18) & 0x00000007);
{
if (condition_code != 0)
SignalException(ReservedInstruction,instruction);
/* NOTE: The branch occurs AFTER the next instruction has been executed */
if (condition) {
DSPC = (PC + offset);
- DELAYSLOT();
}
else if (likely) {
- NULLIFY();
+ NULLIFY_NIA ();
}
}
}
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int cmpflags UNUSED = ((instruction >> 0) & 0x0000000F);
- int condition_code UNUSED = ((instruction >> 8) & 0x00000007);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int cmpflags = ((instruction >> 0) & 0x0000000F);
+ int condition_code = ((instruction >> 8) & 0x00000007);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
if (condition_code != 0)
{
SignalException(ReservedInstruction,instruction);
if (NaN(ofs,format) || NaN(oft,format)) {
if (FCSR & FP_ENABLE(IO)) {
FCSR |= FP_CAUSE(IO);
- SignalException(FPE);
+ SignalExceptionFPE();
ignore = 1;
}
} else {
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int to UNUSED = ((instruction >> 23) & 0x00000001);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int to = ((instruction >> 23) & 0x00000001);
{
if (to) {
if (fs == 0) {
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format == fmt_double) | 0)
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format == fmt_long) | ((format == fmt_long) || (format == fmt_word)))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format == fmt_single) | 0)
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format == fmt_word) | ((format == fmt_long) || (format == fmt_word)))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int to UNUSED = ((instruction >> 23) & 0x00000001);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int to = ((instruction >> 23) & 0x00000001);
{
if (to) {
if (SizeFGR() == 64) {
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + op2);
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 4;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
LoadMemory(&memval,&memval1,uncached,AccessLength_DOUBLEWORD,paddr,vaddr,isDATA,isREAL);
COP_LD(1,destreg,memval);;
}
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + op2);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 2;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_WORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int fr UNUSED = ((instruction >> 21) & 0x0000001F);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int fr = ((instruction >> 21) & 0x0000001F);
{
StoreFPR(destreg,fmt_double,Add(Multiply(ValueFPR(fs,fmt_double),ValueFPR(ft,fmt_double),fmt_double),ValueFPR(fr,fmt_double),fmt_double));
}
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int fr UNUSED = ((instruction >> 21) & 0x0000001F);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int fr = ((instruction >> 21) & 0x0000001F);
{
StoreFPR(destreg,fmt_single,Add(Multiply(ValueFPR(fs,fmt_single),ValueFPR(ft,fmt_single),fmt_single),ValueFPR(fr,fmt_single),fmt_single));
}
// MFC1
010001,00,X,00,5.RT,5.FS,00000000000:COP1S:32::MxC1
-"mXc1 r<RT>, f<FS>"
+"m<X>c1 r<RT>, f<FS>"
*mipsI:
*mipsII:
*mipsIII:
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int to UNUSED = ((instruction >> 23) & 0x00000001);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int to = ((instruction >> 23) & 0x00000001);
{
if (to) {
if (SizeFGR() == 64) {
- PENDING_FILL((fs + FGRIDX),(SET64HI(0xDEADC0DE) | VL4_8(GPR[ft])));
+ PENDING_FILL ((fs + FGRIDX), (SET64HI(0xDEADC0DE) | VL4_8(GPR[ft])));
} else {
- PENDING_FILL((fs + FGRIDX),VL4_8(GPR[ft]));
+ PENDING_FILL ((fs + FGRIDX), VL4_8(GPR[ft]));
}
} else {
- PENDING_FILL(ft,SIGNEXTEND(FGR[fs],32));
+ PENDING_FILL (ft, SIGNEXTEND(FGR[fs],32));
}
}
}
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
StoreFPR(destreg,format,ValueFPR(fs,format));
}
// MOVF
000000,5.RS,3.CC,0,1.TF,5.RD,00000000001:SPECIAL:32::MOVtf
-"mov%s<TF> r<RD>, r<FS>, <CC>"
+"mov%s<TF> r<RD>, r<RS>, <CC>"
*mipsIV:
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
{
- unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- int boolean UNUSED = ((instruction >> 16) & 0x00000001);
- int condition_code UNUSED = ((instruction >> 18) & 0x00000007);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- {
- if (GETFCC(condition_code) == boolean)
- GPR[destreg] = op1;
- }
+ if (GETFCC(CC) == TF)
+ GPR[RD] = GPR[RS];
}
// MOVF.fmt
010001,10,3.FMT,3.CC,0,1.TF,5.FS,5.FD,010001:COP1:32::MOVtf.fmt
-"mov%s<TF>.%s<FMT>
+"mov%s<TF>.%s<FMT> f<FD>, f<FS>, <CC>"
*mipsIV:
// start-sanitize-r5900
*r5900:
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int boolean UNUSED = ((instruction >> 16) & 0x00000001);
- int condition_code UNUSED = ((instruction >> 18) & 0x00000007);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int format = ((instruction >> 21) & 0x00000007);
{
- if (GETFCC(condition_code) == boolean)
- StoreFPR(destreg,format,ValueFPR(fs,format));
+ if (GETFCC(CC) == TF)
+ StoreFPR (FD, format, ValueFPR (FS, format));
else
- StoreFPR(destreg,format,ValueFPR(destreg,format));
+ StoreFPR (FD, format, ValueFPR (FD, format));
}
}
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
StoreFPR(destreg,format,ValueFPR(fs,format));
}
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
StoreFPR(destreg,format,ValueFPR(fs,format));
}
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int fr UNUSED = ((instruction >> 21) & 0x0000001F);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int fr = ((instruction >> 21) & 0x0000001F);
{
StoreFPR(destreg,fmt_double,(Sub(Multiply(ValueFPR(fs,fmt_double),ValueFPR(ft,fmt_double),fmt_double),ValueFPR(fr,fmt_double),fmt_double),fmt_double));
}
// MSUB.fmt
-010011,bbbbb,5.FT,5.FS,5.FD,101000:COP1X:32::MSUB.S
+010011,5.FR,5.FT,5.FS,5.FD,101000:COP1X:32::MSUB.S
"msub.s f<FD>, f<FR>, f<FS>, f<FT>"
*mipsIV:
// start-sanitize-r5900
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int fr UNUSED = ((instruction >> 21) & 0x0000001F);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int fr = ((instruction >> 21) & 0x0000001F);
{
StoreFPR(destreg,fmt_single,(Sub(Multiply(ValueFPR(fs,fmt_single),ValueFPR(ft,fmt_single),fmt_single),ValueFPR(fr,fmt_single),fmt_single),fmt_single));
}
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
*mipsIV:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int fr UNUSED = ((instruction >> 21) & 0x0000001F);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int fr = ((instruction >> 21) & 0x0000001F);
{
StoreFPR(destreg,fmt_double,Negate(Add(Multiply(ValueFPR(fs,fmt_double),ValueFPR(ft,fmt_double),fmt_double),ValueFPR(fr,fmt_double),fmt_double),fmt_double));
}
*mipsIV:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int fr UNUSED = ((instruction >> 21) & 0x0000001F);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int fr = ((instruction >> 21) & 0x0000001F);
{
StoreFPR(destreg,fmt_single,Negate(Add(Multiply(ValueFPR(fs,fmt_single),ValueFPR(ft,fmt_single),fmt_single),ValueFPR(fr,fmt_single),fmt_single),fmt_single));
}
// NMSUB.fmt
-010011,bbbbb,5.FT,5.FS,5.FD,111001:COP1X:32::NMSUB.D
+010011,5.FR,5.FT,5.FS,5.FD,111001:COP1X:32::NMSUB.D
"nmsub.d f<FD>, f<FR>, f<FS>, f<FT>"
*mipsIV:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int fr UNUSED = ((instruction >> 21) & 0x0000001F);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int fr = ((instruction >> 21) & 0x0000001F);
{
StoreFPR(destreg,fmt_double,Negate(Sub(Multiply(ValueFPR(fs,fmt_double),ValueFPR(ft,fmt_double),fmt_double),ValueFPR(fr,fmt_double),fmt_double),fmt_double));
}
// NMSUB.fmt
-010011,bbbbb,5.FT,5.FS,5.FD,111000:COP1X:32::NMSUB.S
+010011,5.FR,5.FT,5.FS,5.FD,111000:COP1X:32::NMSUB.S
"nmsub.s f<FD>, f<FR>, f<FS>, f<FT>"
*mipsIV:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int fr UNUSED = ((instruction >> 21) & 0x0000001F);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int fr = ((instruction >> 21) & 0x0000001F);
{
StoreFPR(destreg,fmt_single,Negate(Sub(Multiply(ValueFPR(fs,fmt_single),ValueFPR(ft,fmt_single),fmt_single),ValueFPR(fr,fmt_single),fmt_single),fmt_single));
}
*mipsIV:
{
unsigned32 instruction = instruction_0;
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int fs = ((instruction >> 11) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + (unsigned64)op2);
unsigned64 paddr;
"recip.%s<FMT> f<FD>, f<FS>"
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
"rsqrt.%s<FMT> f<FD>, f<FS>"
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int fs = ((instruction >> 11) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + op2);
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int ft UNUSED = ((instruction >> 16) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int ft = ((instruction >> 16) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// SWC1
-010011,5.BASE,5.INDEX,5.FS,00000,001000:COP1X:32::SWXC1
+010011,5.BASE,5.FT,5.FS,00000,001000:COP1X:32::SWXC1
"swxc1 f<FT>, r<OFFSET>(r<BASE>)"
*mipsIV:
// start-sanitize-r5900
// end-sanitize-r5900
{
unsigned32 instruction = instruction_0;
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int fs = ((instruction >> 11) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + op2);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 6) & 0x0000001F);
- int fs UNUSED = ((instruction >> 11) & 0x0000001F);
- int format UNUSED = ((instruction >> 21) & 0x00000007);
+ int destreg = ((instruction >> 6) & 0x0000001F);
+ int fs = ((instruction >> 11) & 0x0000001F);
+ int format = ((instruction >> 21) & 0x00000007);
{
if ((format != fmt_single) && (format != fmt_double))
SignalException(ReservedInstruction,instruction);
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int hint UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int hint = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = (op1 + offset);
unsigned64 paddr;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 0;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_BYTE,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 0;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_BYTE,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
unsigned64 paddr;
int uncached;
if ((vaddr & 1) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 1;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_HALFWORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
unsigned64 paddr;
int uncached;
if ((vaddr & 1) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 1;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_HALFWORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 2;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_WORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
int offset = (instruction >> 0) & 0xff;
- t_reg op1 = ((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (unsigned64) 1) & ~ (unsigned64) 0x3;
+ signed_word op1 = ((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (unsigned64) 1) & ~ (unsigned64) 0x3;
if (destreg < 2)
destreg += 16;
if (have_extendval)
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 2;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_WORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
int offset = (instruction >> 0) & 0xff;
- t_reg op1 = 29;
+ signed_word op1 = 29;
if (destreg < 2)
destreg += 16;
if (have_extendval)
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 2;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_WORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 2;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
paddr = ((paddr & ~mask) | ((paddr & mask) ^ (reverse << shift)));
LoadMemory(&memval,&memval1,uncached,AccessLength_WORD,paddr,vaddr,isDATA,isREAL);
byte = ((vaddr & mask) ^ (bigend << shift));
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 4;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
LoadMemory(&memval,&memval1,uncached,AccessLength_DOUBLEWORD,paddr,vaddr,isDATA,isREAL);
GPR[destreg] = memval;
}
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
- t_reg op1 = ((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (unsigned64) 1) & ~ (unsigned64) 0x7;
+ signed_word op1 = ((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (unsigned64) 1) & ~ (unsigned64) 0x7;
if (destreg < 2)
destreg += 16;
if (have_extendval)
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 4;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
LoadMemory(&memval,&memval1,uncached,AccessLength_DOUBLEWORD,paddr,vaddr,isDATA,isREAL);
GPR[destreg] = memval;
}
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
- t_reg op1 = 29;
+ signed_word op1 = 29;
if (destreg < 2)
destreg += 16;
if (have_extendval)
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 4;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
LoadMemory(&memval,&memval1,uncached,AccessLength_DOUBLEWORD,paddr,vaddr,isDATA,isREAL);
GPR[destreg] = memval;
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
op1 += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
op1 += 16;
unsigned64 paddr;
int uncached;
if ((vaddr & 1) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
op1 += 16;
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op2 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 8) & 0x7;
int offset = (instruction >> 0) & 0xff;
- t_reg op1 = 29;
+ signed_word op1 = 29;
if (op2 < 2)
op2 += 16;
op2 = GPR[op2];
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
{
unsigned32 instruction = instruction_0;
int offset = (instruction >> 0) & 0xff;
- t_reg op2 = 31;
- t_reg op1 = 29;
+ signed_word op2 = 31;
+ signed_word op1 = 29;
if (have_extendval)
{
offset |= ((extendval & 0x1f) << 11) | (extendval & 0x7e0);
unsigned64 paddr;
int uncached;
if ((vaddr & 3) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
if (op1 < 2)
op1 += 16;
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int offset = (instruction >> 0) & 0x1f;
- t_reg op1 = 29;
+ signed_word op1 = 29;
if (op2 < 2)
op2 += 16;
op2 = GPR[op2];
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
{
unsigned32 instruction = instruction_0;
int offset = (instruction >> 0) & 0xff;
- t_reg op1 = 29;
- t_reg op2 = 31;
+ signed_word op1 = 29;
+ signed_word op2 = 31;
if (have_extendval)
{
offset |= ((extendval & 0x1f) << 11) | (extendval & 0x7e0);
unsigned64 paddr;
int uncached;
if ((vaddr & 7) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
int op2 = (instruction >> 0) & 0xff;
- t_reg op1 = 0;
+ signed_word op1 = 0;
if (destreg < 2)
destreg += 16;
if (have_extendval)
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = (instruction >> 5) & 0x7;
int op2 = (instruction >> 0) & 0xf;
if (op1 < 2)
SignalException (ReservedInstruction, instruction);
{
unsigned int temp = (unsigned int)(op1 + op2);
- signed int tempS UNUSED = (signed int)temp;
+ signed int tempS = (signed int)temp;
GPR[destreg] = SIGNEXTEND(((unsigned64)temp),32);
}
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg;
int op2 = (instruction >> 0) & 0xff;
if (op1 < 2)
SignalException (ReservedInstruction, instruction);
{
unsigned int temp = (unsigned int)(op1 + op2);
- signed int tempS UNUSED = (signed int)temp;
+ signed int tempS = (signed int)temp;
GPR[destreg] = SIGNEXTEND(((unsigned64)temp),32);
}
}
{
unsigned32 instruction = instruction_0;
int op2 = (instruction >> 0) & 0xff;
- t_reg op1 = 29;
+ signed_word op1 = 29;
int destreg;
if (have_extendval)
{
SignalException (ReservedInstruction, instruction);
{
unsigned int temp = (unsigned int)(op1 + op2);
- signed int tempS UNUSED = (signed int)temp;
+ signed int tempS = (signed int)temp;
GPR[destreg] = SIGNEXTEND(((unsigned64)temp),32);
}
}
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
int op2 = (instruction >> 0) & 0xff;
- t_reg op1 = ((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (unsigned64) 1) & ~ (unsigned64) 0x3;
+ signed_word op1 = ((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (unsigned64) 1) & ~ (unsigned64) 0x3;
if (destreg < 2)
destreg += 16;
if (have_extendval)
SignalException (ReservedInstruction, instruction);
{
unsigned int temp = (unsigned int)(op1 + op2);
- signed int tempS UNUSED = (signed int)temp;
+ signed int tempS = (signed int)temp;
GPR[destreg] = SIGNEXTEND(((unsigned64)temp),32);
}
}
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
int op2 = (instruction >> 0) & 0xff;
- t_reg op1 = 29;
+ signed_word op1 = 29;
if (destreg < 2)
destreg += 16;
if (have_extendval)
SignalException (ReservedInstruction, instruction);
{
unsigned int temp = (unsigned int)(op1 + op2);
- signed int tempS UNUSED = (signed int)temp;
+ signed int tempS = (signed int)temp;
GPR[destreg] = SIGNEXTEND(((unsigned64)temp),32);
}
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = (instruction >> 5) & 0x7;
int op2 = (instruction >> 0) & 0xf;
if (op1 < 2)
SignalException (ReservedInstruction, instruction);
{
unsigned64 temp = (unsigned64)(op1 + op2);
- word64 tempS UNUSED = (word64)temp;
+ word64 tempS = (word64)temp;
GPR[destreg] = (unsigned64)temp;
}
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 5) & 0x7;
int destreg;
int op2 = (instruction >> 0) & 0x1f;
if (op1 < 2)
SignalException (ReservedInstruction, instruction);
{
unsigned64 temp = (unsigned64)(op1 + op2);
- word64 tempS UNUSED = (word64)temp;
+ word64 tempS = (word64)temp;
GPR[destreg] = (unsigned64)temp;
}
}
{
unsigned32 instruction = instruction_0;
int op2 = (instruction >> 0) & 0xff;
- t_reg op1 = 29;
+ signed_word op1 = 29;
int destreg;
if (have_extendval)
{
SignalException (ReservedInstruction, instruction);
{
unsigned64 temp = (unsigned64)(op1 + op2);
- word64 tempS UNUSED = (word64)temp;
+ word64 tempS = (word64)temp;
GPR[destreg] = (unsigned64)temp;
}
}
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 5) & 0x7;
int op2 = (instruction >> 0) & 0x1f;
- t_reg op1 = ((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (unsigned64) 1) & ~ (unsigned64) 0x3;
+ signed_word op1 = ((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (unsigned64) 1) & ~ (unsigned64) 0x3;
if (destreg < 2)
destreg += 16;
if (have_extendval)
SignalException (ReservedInstruction, instruction);
{
unsigned64 temp = (unsigned64)(op1 + op2);
- word64 tempS UNUSED = (word64)temp;
+ word64 tempS = (word64)temp;
GPR[destreg] = (unsigned64)temp;
}
}
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 5) & 0x7;
int op2 = (instruction >> 0) & 0x1f;
- t_reg op1 = 29;
+ signed_word op1 = 29;
if (destreg < 2)
destreg += 16;
if (have_extendval)
SignalException (ReservedInstruction, instruction);
{
unsigned64 temp = (unsigned64)(op1 + op2);
- word64 tempS UNUSED = (word64)temp;
+ word64 tempS = (word64)temp;
GPR[destreg] = (unsigned64)temp;
}
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int op2 = (instruction >> 0) & 0xff;
int destreg = 24;
if (op1 < 2)
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int op2 = (instruction >> 0) & 0xff;
int destreg = 24;
if (op1 < 2)
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg = 24;
if (op1 < 2)
op1 += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int op2 = (instruction >> 0) & 0xff;
int destreg = 24;
if (op1 < 2)
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg = (instruction >> 2) & 0x7;
if (op1 < 2)
op1 += 16;
SignalException (ReservedInstruction, instruction);
{
unsigned int temp = (unsigned int)(op1 + op2);
- signed int tempS UNUSED = (signed int)temp;
+ signed int tempS = (signed int)temp;
GPR[destreg] = SIGNEXTEND(((unsigned64)temp),32);
}
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg = (instruction >> 2) & 0x7;
if (op1 < 2)
op1 += 16;
SignalException (ReservedInstruction, instruction);
{
unsigned int temp = (unsigned int)(op1 - op2);
- signed int tempS UNUSED = (signed int)temp;
+ signed int tempS = (signed int)temp;
GPR[destreg] = SIGNEXTEND(((unsigned64)temp),32);
}
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg = (instruction >> 2) & 0x7;
if (op1 < 2)
op1 += 16;
SignalException (ReservedInstruction, instruction);
{
unsigned64 temp = (unsigned64)(op1 + op2);
- word64 tempS UNUSED = (word64)temp;
+ word64 tempS = (word64)temp;
GPR[destreg] = (unsigned64)temp;
}
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg = (instruction >> 2) & 0x7;
if (op1 < 2)
op1 += 16;
SignalException (ReservedInstruction, instruction);
{
unsigned64 temp = (unsigned64)(op1 - op2);
- word64 tempS UNUSED = (word64)temp;
+ word64 tempS = (word64)temp;
GPR[destreg] = (unsigned64)temp;
}
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg = 24;
if (op1 < 2)
op1 += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg = 24;
if (op1 < 2)
op1 += 16;
{
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
- t_reg op1 = 0;
+ signed_word op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = 0;
if (destreg < 2)
destreg += 16;
if (op2 < 2)
SignalException (ReservedInstruction, instruction);
{
unsigned int temp = (unsigned int)(op1 - op2);
- signed int tempS UNUSED = (signed int)temp;
+ signed int tempS = (signed int)temp;
GPR[destreg] = SIGNEXTEND(((unsigned64)temp),32);
}
}
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
destreg = op1;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
destreg = op1;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
destreg = op1;
{
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
- t_reg op1 = 0;
+ signed_word op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = 0;
if (destreg < 2)
destreg += 16;
if (op2 < 2)
{
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 5) & 0x7;
- t_reg op1 = (instruction >> 0) & 0x1f;
- t_reg op2 = 0;
+ signed_word op1 = (instruction >> 0) & 0x1f;
+ signed_word op2 = 0;
if (destreg < 2)
destreg += 16;
op1 = GPR[op1];
{
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 3) & 0x1f;
- t_reg op1 = (instruction >> 0) & 0x7;
- t_reg op2 = 0;
+ signed_word op1 = (instruction >> 0) & 0x7;
+ signed_word op2 = 0;
destreg = (destreg >> 2) | ((destreg & 3) << 3);
if (op1 < 2)
op1 += 16;
{
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int op1 = (instruction >> 2) & 0x7;
if (destreg < 2)
destreg += 16;
{
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int op1 = (instruction >> 2) & 0x7;
if (destreg < 2)
destreg += 16;
{
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int op1 = (instruction >> 2) & 0x7;
if (destreg < 2)
destreg += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg;
if (op1 < 2)
op1 += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg;
if (op1 < 2)
op1 += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg;
if (op1 < 2)
op1 += 16;
{
unsigned32 instruction = instruction_0;
int destreg = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int op1 = (instruction >> 2) & 0x7;
if (destreg < 2)
destreg += 16;
{
unsigned32 instruction = instruction_0;
int op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg;
if (have_extendval)
{
{
unsigned32 instruction = instruction_0;
int op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg;
if (have_extendval)
{
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg;
if (op1 < 2)
op1 += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg;
if (op1 < 2)
op1 += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
int destreg;
if (op1 < 2)
op1 += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
- t_reg op2 = (instruction >> 5) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
+ signed_word op2 = (instruction >> 5) & 0x7;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- ut_reg op1 = (instruction >> 0) & 0x7ff;
+ unsigned_word op1 = (instruction >> 0) & 0x7ff;
{
unsigned64 paddr;
int uncached;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = 31;
+ signed_word op1 = 31;
op1 = GPR[op1];
if (have_extendval)
SignalException (ReservedInstruction, instruction);
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int destreg = 31;
if (op1 < 2)
op1 += 16;
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int offset = (instruction >> 0) & 0xff;
- t_reg op2 = 0;
+ signed_word op2 = 0;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
*mips16:
{
unsigned32 instruction = instruction_0;
- t_reg op1 = (instruction >> 8) & 0x7;
+ signed_word op1 = (instruction >> 8) & 0x7;
int offset = (instruction >> 0) & 0xff;
- t_reg op2 = 0;
+ signed_word op2 = 0;
if (op1 < 2)
op1 += 16;
op1 = GPR[op1];
{
unsigned32 instruction = instruction_0;
int offset = (instruction >> 0) & 0xff;
- t_reg op1 = 24;
- t_reg op2 = 0;
+ signed_word op1 = 24;
+ signed_word op2 = 0;
if (have_extendval)
{
offset |= ((extendval & 0x1f) << 11) | (extendval & 0x7e0);
{
unsigned32 instruction = instruction_0;
int offset = (instruction >> 0) & 0xff;
- t_reg op1 = 24;
- t_reg op2 = 0;
+ signed_word op1 = 24;
+ signed_word op2 = 0;
if (have_extendval)
{
offset |= ((extendval & 0x1f) << 11) | (extendval & 0x7e0);
{
unsigned32 instruction = instruction_0;
int offset = (instruction >> 0) & 0x7ff;
- t_reg op2 = 0;
- t_reg op1 = 0;
+ signed_word op2 = 0;
+ signed_word op1 = 0;
if (have_extendval)
{
offset |= ((extendval & 0x1f) << 11) | (extendval & 0x7e0);
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
CHECKHILO("Division");
{
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
CHECKHILO("Division");
{
// end-sanitize-tx19
{
unsigned32 instruction = instruction_0;
- ut_reg op1 UNUSED = (((instruction >> 0) & 0x03FFFFFF) << 2);
+ unsigned_word op1 = (((instruction >> 0) & 0x03FFFFFF) << 2);
op1 |= (PC & ~0x0FFFFFFF); /* address of instruction in delay slot for the jump */
{
int destreg = 31;
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- int destreg UNUSED = ((instruction >> 16) & 0x0000001F);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ int destreg = ((instruction >> 16) & 0x0000001F);
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 15) != 0)
- SignalException(AddressLoad);
+ SignalExceptionAddressLoad();
else
{
if (AddressTranslation(vaddr,isDATA,isLOAD,&paddr,&uncached,isTARGET,isREAL))
unsigned64 memval1 = 0;
unsigned64 mask = 0x7;
unsigned int shift = 8;
- unsigned int reverse UNUSED = (ReverseEndian ? (mask >> shift) : 0);
- unsigned int bigend UNUSED = (BigEndianCPU ? (mask >> shift) : 0);
- unsigned int byte UNUSED;
+ unsigned int reverse = (ReverseEndian ? (mask >> shift) : 0);
+ unsigned int bigend = (BigEndianCPU ? (mask >> shift) : 0);
+ unsigned int byte;
LoadMemory(&memval,&memval1,uncached,AccessLength_QUADWORD,paddr,vaddr,isDATA,isREAL);
GPR[destreg] = memval;
GPR1[destreg] = memval1;
*r3900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
word64 prod = (word64)WORD64(VL4_8(HI),VL4_8(LO)) + ((word64)SIGNEXTEND(op1,32) * (word64)SIGNEXTEND(op2,32));
LO = SIGNEXTEND(prod,32);
*r3900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 prod = (unsigned64)WORD64(VL4_8(HI),VL4_8(LO)) + ((unsigned64)VL4_8(op1) * (unsigned64)VL4_8(op2));
LO = SIGNEXTEND(prod,32);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
word64 prod = (word64)WORD64(VL4_8(HI1),VL4_8(LO1)) + ((word64)SIGNEXTEND(op1,32) * (word64)SIGNEXTEND(op2,32));
LO1 = SIGNEXTEND(prod,32);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 prod = (unsigned64)WORD64(VL4_8(HI1),VL4_8(LO1)) + ((unsigned64)VL4_8(op1) * (unsigned64)VL4_8(op2));
LO1 = SIGNEXTEND(prod,32);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
{
GPR[destreg] = HI1;
HI1ACCESS = 3; /* 3rd instruction will be safe */
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
{
GPR[destreg] = LO1;
LO1ACCESS = 3; /* 3rd instruction will be safe */
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
{
GPR[destreg] = SA;
}
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
if (HI1ACCESS != 0)
sim_warning("MT (move-to) over-writing HI register value");
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
if (LO1ACCESS != 0)
sim_warning("MT (move-to) over-writing LO register value");
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
SA = op1;
}
000001,5.RS,11000,16.IMMEDIATE:REGIMM:32::MTSAB
*r5900:
{
- unsigned32 instruction = instruction_0;
- t_reg op2 UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- {
- SA = ((op1 & 0xF) ^ (op2 & 0xF)) * 8;
- }
+ SA = ((GPR[RA] & 0xF) ^ (IMMEDIATE & 0xF)) * 8;
}
// end-sanitize-r5900
000001,5.RS,11001,16.IMMEDIATE:REGIMM:32::MTSAH
*r5900:
{
- unsigned32 instruction = instruction_0;
- t_reg op2 UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- {
- SA = ((op1 & 0x7) ^ (op2 & 0x7)) * 16;
- }
+ SA = ((GPR[RS] & 0x7) ^ (IMMEDIATE & 0x7)) * 16;
}
// end-sanitize-r5900
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
CHECKHILO("Multiplication");
{
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
CHECKHILO("Multiplication");
{
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int i;
for(i=0;i<HALFWORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < BYTES_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < HALFWORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < WORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < BYTES_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < HALFWORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < WORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < BYTES_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < HALFWORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < WORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<HALFWORDS_IN_MMI_REGS/2;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<BYTES_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<HALFWORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<BYTES_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<HALFWORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
GPR_UH(destreg,7) = GPR_UH(destreg,6) = GPR_UH(destreg,5) = GPR_UH(destreg,4) = RT_UH(4);
GPR_UH(destreg,3) = GPR_UH(destreg,2) = GPR_UH(destreg,1) = GPR_UH(destreg,0) = RT_UH(0);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UD(destreg,0) = RT_UD(0);
GPR_UD(destreg,1) = RS_UD(0);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UD(destreg,0) = RS_UD(1);
GPR_UD(destreg,1) = RT_UD(1);
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
signed32 devisor = RT_SH(0);
if (devisor == -1)
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
if (RT_UW(0) != 0)
{
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
if (RT_SW(0) == -1)
{
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
GPR_UH(destreg,0) = RT_UH(0);
GPR_UH(destreg,1) = RT_UH(2);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
GPR_UW(destreg,0) = RT_UW(0);
GPR_UW(destreg,1) = RT_UW(2);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
GPR_UH(destreg,0) = RT_UH(2);
GPR_UH(destreg,1) = RT_UH(1);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
GPR_UW(destreg,0) = RT_UW(2);
GPR_UW(destreg,1) = RT_UW(1);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UB(destreg,0) = RT_UB(0);
GPR_UB(destreg,1) = RS_UB(0);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UH(destreg,0) = RT_UH(0);
GPR_UH(destreg,1) = RS_UH(0);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UW(destreg,0) = RT_UW(0);
GPR_UW(destreg,1) = RS_UW(0);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UB(destreg,0) = RT_UB(8);
GPR_UB(destreg,1) = RS_UB(8);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UH(destreg,0) = RT_UH(4);
GPR_UH(destreg,1) = RS_UH(4);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UW(destreg,0) = RT_UW(2);
GPR_UW(destreg,1) = RS_UW(2);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_SW(destreg,0) = LO_SW(0) = (RS_SH(1) * RT_SH(1)) + (RS_SH(0) * RT_SH(0));
GPR_SW(destreg,1) = HI_SW(0) = (RS_SH(3) * RT_SH(3)) + (RS_SH(2) * RT_SH(2));
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_SW(destreg,0) = LO_SW(0) = (RS_SH(1) * RT_SH(1)) - (RS_SH(0) * RT_SH(0));
GPR_SW(destreg,1) = HI_SW(0) = (RS_SH(3) * RT_SH(3)) - (RS_SH(2) * RT_SH(2));
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UH(destreg,0) = RT_UH(0);
GPR_UH(destreg,1) = RS_UH(4);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UH(destreg,0) = RT_UH(0);
GPR_UH(destreg,1) = RS_UH(0);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
unsigned long value;
int test;
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_SW(destreg,0) = LO_SW(0) += (RS_SH(0) * RT_SH(0));
LO_SW(1) += (RS_SH(1) * RT_SH(1));
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
- unsigned64 sum0 = UNSIGNED64( HI_SW(0), LO_SW(0) );
- unsigned64 sum1 = UNSIGNED64( HI_SW(2), LO_SW(2) );
+ unsigned64 sum0 = U8_4 (HI_SW(0), LO_SW(0));
+ unsigned64 sum1 = u8_4 (HI_SW(2), LO_SW(2));
unsigned64 prod0 = (unsigned64)RS_UW(0) * (unsigned64)RT_UW(0);
unsigned64 prod1 = (unsigned64)RS_UW(2) * (unsigned64)RT_UW(2);
sum0 += prod0;
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
signed64 sum0 = WORD64( HI_SW(0), LO_SW(0) );
signed64 sum1 = WORD64( HI_SW(2), LO_SW(2) );
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<HALFWORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
{
GPR_SD(destreg,0) = HI;
GPR_SD(destreg,1) = HI1;
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
{
GPR_SD(destreg,0) = LO;
GPR_SD(destreg,1) = LO1;
// end-sanitize-r5900
// start-sanitize-r5900
-0111000000000000,5.RD,5.SA,110000:MMINORM:32::PMFHL
+0111000000000000,5.RD,5.SHIFT,110000:MMINORM:32::PMFHL
*r5900:
{
unsigned32 instruction = instruction_0;
- int op1 UNUSED = ((instruction >> 6) & 0x0000001F);
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
+ int op1 = ((instruction >> 6) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
{
if (op1 == 0)
{
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<HALFWORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_SW(destreg,0) = LO_SW(0) -= (RS_SH(0) * RT_SH(0));
LO_SW(1) -= (RS_SH(1) * RT_SH(1));
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
signed64 sum0 = WORD64( HI_SW(0), LO_SW(0) );
signed64 sum1 = WORD64( HI_SW(2), LO_SW(2) );
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
HI = RS_SD(0);
HI1 = RS_SD(1);
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
LO = RS_SD(0);
LO1 = RS_SD(1);
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
LO_UW(0) = RS_UW(0);
HI_UW(0) = RS_UW(1);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_SW(destreg,0) = LO_SW(0) = (RS_SH(0) * RT_SH(0));
LO_SW(1) = (RS_SH(1) * RT_SH(1));
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
unsigned64 sum0 = 0;
unsigned64 sum1 = 0;
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
signed64 sum0 = 0;
signed64 sum1 = 0;
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UB(destreg,0) = RT_UB(0);
GPR_UB(destreg,1) = RT_UB(2);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UH(destreg,0) = RT_UH(0);
GPR_UH(destreg,1) = RT_UH(2);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UW(destreg,0) = RT_UW(0);
GPR_UW(destreg,1) = RT_UW(2);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
GPR_UH(destreg,0) = RT_UH(3);
GPR_UH(destreg,1) = RT_UH(2);
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
GPR_UW(destreg,0) = RT_UW(0);
GPR_UW(destreg,1) = RT_UW(3);
// end-sanitize-r5900
// start-sanitize-r5900
-01110000000,5.RT,5.RD,5.SA,110100:MMINORM:32::PSLLH
+01110000000,5.RT,5.RD,5.SHIFT,110100:MMINORM:32::PSLLH
*r5900:
{
unsigned32 instruction = instruction_0;
- int op1 UNUSED = ((instruction >> 6) & 0x0000001F);
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int op1 = ((instruction >> 6) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int shift_by = op1 & (16-1);
int i;
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int s0 = (RS_UB(0) & 0x1F);
int s1 = (RS_UB(8) & 0x1F);
// end-sanitize-r5900
// start-sanitize-r5900
-01110000000,5.RT,5.RD,5.SA,111100:MMINORM:32::PSLLW
+01110000000,5.RT,5.RD,5.SHIFT,111100:MMINORM:32::PSLLW
*r5900:
{
unsigned32 instruction = instruction_0;
- int op1 UNUSED = ((instruction >> 6) & 0x0000001F);
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int op1 = ((instruction >> 6) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int shift_by = op1 & (32-1);
int i;
// end-sanitize-r5900
// start-sanitize-r5900
-01110000000,5.RT,5.RD,5.SA,110111:MMINORM:32::PSRAH
+01110000000,5.RT,5.RD,5.SHIFT,110111:MMINORM:32::PSRAH
*r5900:
{
unsigned32 instruction = instruction_0;
- int op1 UNUSED = ((instruction >> 6) & 0x0000001F);
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int op1 = ((instruction >> 6) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int shift_by = op1 & (16-1);
int i;
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_SD(destreg,0) = SIGNEXTEND( (RT_SW (0) >> (RS_UB(0) & 0x1F)), 32-(RS_UB(0) & 0x1F) );
GPR_SD(destreg,1) = SIGNEXTEND( (RT_SW (2) >> (RS_UB(8) & 0x1F)), 32-(RS_UB(8) & 0x1F) );
// end-sanitize-r5900
// start-sanitize-r5900
-01110000000,5.RT,5.RD,5.SA,111111:MMINORM:32::PSRAW
+01110000000,5.RT,5.RD,5.SHIFT,111111:MMINORM:32::PSRAW
*r5900:
{
unsigned32 instruction = instruction_0;
- int op1 UNUSED = ((instruction >> 6) & 0x0000001F);
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int op1 = ((instruction >> 6) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int shift_by = op1 & (32-1);
int i;
// end-sanitize-r5900
// start-sanitize-r5900
-01110000000,5.RT,5.RD,5.SA,110110:MMINORM:32::PSRLH
+01110000000,5.RT,5.RD,5.SHIFT,110110:MMINORM:32::PSRLH
*r5900:
{
unsigned32 instruction = instruction_0;
- int op1 UNUSED = ((instruction >> 6) & 0x0000001F);
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int op1 = ((instruction >> 6) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int shift_by = op1 & (16-1);
int i;
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
GPR_UD(destreg,0) = SIGNEXTEND ( RT_UW(0) >> (RS_UB(0) & 0x1F), 31);
GPR_UD(destreg,1) = SIGNEXTEND ( RT_UW(2) >> (RS_UB(8) & 0x1F), 31);
// end-sanitize-r5900
// start-sanitize-r5900
-01110000000,5.RT,5.RD,5.SA,111110:MMINORM:32::PSRLW
+01110000000,5.RT,5.RD,5.SHIFT,111110:MMINORM:32::PSRLW
*r5900:
{
unsigned32 instruction = instruction_0;
- int op1 UNUSED = ((instruction >> 6) & 0x0000001F);
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ int op1 = ((instruction >> 6) & 0x0000001F);
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
{
int shift_by = op1 & (32-1);
int i;
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < BYTES_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < HALFWORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < BYTES_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < HALFWORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < WORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < BYTES_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < HALFWORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < WORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for (i=0; i < WORDS_IN_MMI_REGS; i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int i;
for(i=0;i<WORDS_IN_MMI_REGS;i++)
*r5900:
{
unsigned32 instruction = instruction_0;
- int destreg UNUSED = ((instruction >> 11) & 0x0000001F);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg rs_reg UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
- t_reg rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
+ int destreg = ((instruction >> 11) & 0x0000001F);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word rs_reg = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word rs_reg1 = GPR1[((instruction >> 21) & 0x0000001F)];
{
int bytes = (SA / 8) % 16;
if (SA % 8)
*r5900:
{
unsigned32 instruction = instruction_0;
- t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
- t_reg rt_reg UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
- t_reg rt_reg1 = GPR1[((instruction >> 16) & 0x0000001F)];
- t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+ signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+ signed_word rsigned_word = GPR[((instruction >> 16) & 0x0000001F)];
+ signed_word rsigned_word1 = GPR1[((instruction >> 16) & 0x0000001F)];
+ signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
{
unsigned64 vaddr = ((unsigned64)op1 + offset);
unsigned64 paddr;
int uncached;
if ((vaddr & 15) != 0)
- SignalException(AddressStore);
+ SignalExceptionAddressStore();
else
{
if (AddressTranslation(vaddr,isDATA,isSTORE,&paddr,&uncached,isTARGET,isREAL))
{
unsigned64 memval = 0;
unsigned64 memval1 = 0;
- memval = rt_reg;
- memval1 = rt_reg1;
+ memval = rsigned_word;
+ memval1 = rsigned_word1;
{
StoreMemory(uncached,AccessLength_QUADWORD,memval,memval1,paddr,vaddr,isREAL);
}
// // end-sanitize-tx19
// {
// unsigned32 instruction = instruction_0;
-// t_reg offset UNUSED = SIGNEXTEND((t_reg)((instruction >> 0) & 0x0000FFFF),16);
-// t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
-// t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+// signed_word offset = SIGNEXTEND((signed_word)((instruction >> 0) & 0x0000FFFF),16);
+// signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+// signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
// {
// if (CoProcPresent(3))
// SignalException(CoProcessorUnusable);
// *vr4100:
// {
// unsigned32 instruction = instruction_0;
-// t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
-// t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+// signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+// signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
// {
// CHECKHILO("Multiply-Add");
// {
// *vr4100:
// {
// unsigned32 instruction = instruction_0;
-// t_reg op2 UNUSED = GPR[((instruction >> 16) & 0x0000001F)];
-// t_reg op1 UNUSED = GPR[((instruction >> 21) & 0x0000001F)];
+// signed_word op2 = GPR[((instruction >> 16) & 0x0000001F)];
+// signed_word op1 = GPR[((instruction >> 21) & 0x0000001F)];
// {
// CHECKHILO("Multiply-Add");
// {