public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jeffrey A Law <law@cygnus.com>
To: "Jerry Quinn" <jquinn@nortelnetworks.com>
Cc: binutils@sourceware.cygnus.com
Subject: Re: Patch: add pa2.0 64 bit condition completers (2nd try)
Date: Fri, 06 Aug 1999 08:52:00 -0000	[thread overview]
Message-ID: <24970.933954624@upchuck.cygnus.com> (raw)
In-Reply-To: <199907291433.HAA06298@cygnus.com>

  In message <199907291433.HAA06298@cygnus.com>you write:
  > There was an undefined variable that shouldn't have been there.  Here is
  > the patch again without it.
  > 
  > Wed Jul 28 15:11:09 EDT 1999  Jerry Quinn <jquinn@nortelnetworks.com>
  > 
  >     * gas/config/tc-hppa.c (pa_ip):  Add 64 bit condition completers.
  >     * include/opcode/hppa.h:  Document 64 bit condition completers.
  >     * opcodes/hppa-dis.c (compare_cond_64_names, cmpib_cond_64_names,
  >     add_cond_64_names, wide_add_cond_names, logical_cond_64_names,
  >     unit_cond_64_names, shift_cond_64_names, bb_cond_64_names): New.
  >     (print_insn_hppa): Add 64 bit condition completers.
Thanks.  A few comments.

  > ***************
  > *** 1733,1738 ****
  > --- 1734,1746 ----
  >   		      {
  >   			s++;
  >   			name = s;
  > + 
  > + 			/* 64 bit conditions.  */
  > + 			if (*args == 'A' && *s == '*')
  > + 			  s++;
  > + 			else
  > + 			  break;
  > + 
You have to update NAME after skipping over the '*'.  A minor goof, but it
will prevent you from doing any 64bit completers :-)  I've fixed this in
your patch.



  > ! static const char compare_cond_64_names[][6] = {
  > !   ",*", ",*=", ",*<", ",*<=", ",*<<", ",*<<=", ",*sv", ",*od",
  > !   ",*tr", ",*<>", ",*>=", ",*>", ",*>>=", ",*>>", ",*nsv", ",*ev"
  > ! };
Instead of ",*" for the no condition case we should use an empty string.  It's
awful weird to have to parse "add,*" and realize that it's just a simple
addition :-)    I've fixed up that issue in a few places.

I made those fixes and install this patch + the follow-on bugfix you sent for
this patch.

Thanks,

jeff


       reply	other threads:[~1999-08-06  8:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199907291433.HAA06298@cygnus.com>
1999-08-06  8:52 ` Jeffrey A Law [this message]
1999-07-29  7:33 Jerry Quinn
  -- strict thread matches above, loose matches on Subject: below --
1999-07-29  7:33 Jerry Quinn

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=24970.933954624@upchuck.cygnus.com \
    --to=law@cygnus.com \
    --cc=binutils@sourceware.cygnus.com \
    --cc=jquinn@nortelnetworks.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).