This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Fix for cmp and cmpi instruction in m16.igen
- From: "Monika Chaddha" <monika at acmet dot com>
- To: <bug-gdb at gnu dot org>, <gdb-patches at sources dot redhat dot com>
- Cc: <acmet at vsnl dot net>
- Date: Mon, 6 Sep 2004 11:49:39 +0530
- Subject: Fix for cmp and cmpi instruction in m16.igen
Defect report:-
-------------
File
-----
/src/sim/mips/m16.igen
Defects
--------
1. Mnemonic for CMP instruction is putted as
"sltiu r<TRX>, r<TRY>"
While it should be as
"cmp r<TRX>, r<TRY>"
2. Mnemonic for CMPI instruction is putted as
"sltiu r<TRX>, <IMMED>"
While it should be as
"cmpi r<TRX>, <IMMED>"
Patch
-----
GDB Version no: 6.0
File: /src/sim/mips/m16.igen
11101,3.RX,3.RY,01010:RR:16::CMP
-"sltiu r<TRX>, r<TRY>"
+"cmp r<TRX>, r<TRY>"
*mips16:
*vr4100:
{
do_xor (SD_, TRX, TRY, T8IDX);
}
01110,3.RX,8.IMMED:RI:16::CMPI
-"sltiu r<TRX>, <IMMED>"
+"cmpi r<TRX>, <IMMED>"
*mips16:
*vr4100:
{
do_xori (SD_, TRX, T8IDX, IMMED);
}