Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Monika Chaddha" <monika@acmet.com>
To: <bug-gdb@gnu.org>, <gdb-patches@sources.redhat.com>
Cc: <acmet@vsnl.net>
Subject: Fix for cmp and cmpi instruction in m16.igen
Date: Mon, 06 Sep 2004 06:21:00 -0000	[thread overview]
Message-ID: <006101c493d9$7eeca200$5100a8c0@monika> (raw)

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);
 }



             reply	other threads:[~2004-09-06  6:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-06  6:21 Monika Chaddha [this message]
2004-09-09 10:01 Monika Chaddha
     [not found] ` <41447765.30805@gnu.org>
     [not found]   ` <yov5fz5gnvty.fsf@ldt-sj3-010.sj.broadcom.com>
2004-09-24 21:23     ` Fix " Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='006101c493d9$7eeca200$5100a8c0@monika' \
    --to=monika@acmet.com \
    --cc=acmet@vsnl.net \
    --cc=bug-gdb@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox