public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: James E Wilson <wilson@specifixinc.com>
To: Jan Beulich <JBeulich@novell.com>
Cc: binutils@sources.redhat.com
Subject: Re: [PATCH] ia64: diagnostice for bad use of registers
Date: Tue, 15 Feb 2005 03:31:00 -0000	[thread overview]
Message-ID: <1108418949.7874.24.camel@aretha.corp.specifixinc.com> (raw)
In-Reply-To: <s20b5cd4.011@emea1-mh.id2.novell.com>

On Thu, 2005-02-10 at 05:09, Jan Beulich wrote:
> 	* config/tc-ia64.c (parse_operands): New local variables reg1,
> reg2,
> 	reg_class. Check operands and emit diagnostics for illegal use
> of
> 	registers.

OK, but please add some comments describing the checks being performed,
and the assumptions in the code.

For instance, there are at most 2 output operands, except in the
ldfp+update case, in which case there is no need to record the third
update operand as it can't conflict with either of the first two
operands.

If we have two FP output operands, then we must have an ldfp
instruction, so we perform the checks required by that instruction.

Some of the checks destructively modify reg1, making them look like
general registers, so we can not put any additional general register
specific checks after this code.  Or probably simpler, just use regno
here instead of modifying reg1.

It should be possible for someone to understand the patch even if they
don't have your email message submitting the patch.

While checking the manual, I noticed a somewhat special case that
compares that set the same predicate register twice are invalid only if
the qualifying predicate is true, or if they are an unc type compare. 
But since we can't check the qualifying predicate, it is reasonable to
warn always.  I doubt that anyone is deliberately using compares as nop
instructions, and if they are, then the operands don't matter, and they
can change them to valid ones.

> 	(md_assemble): Defer resolution of move to/from application
> registers
> 	dynamic insns when they can be issued on either the I- or
> M-units.

This changelog entry is misplaced.  This change is not part of this
patch.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


      reply	other threads:[~2005-02-14 22:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-10 16:01 Jan Beulich
2005-02-15  3:31 ` James E Wilson [this message]

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=1108418949.7874.24.camel@aretha.corp.specifixinc.com \
    --to=wilson@specifixinc.com \
    --cc=JBeulich@novell.com \
    --cc=binutils@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).