public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Michael P. Hayes" <michaelh@ongaonga.chch.cri.nz>
To: law@cygnus.com
Cc: meissner@cygnus.com, michaelh@ongaonga.chch.cri.nz,
	egcs@cygnus.com, gcc2@cygnus.com
Subject: Re: base + index register addressing
Date: Fri, 17 Oct 1997 20:51:00 -0000	[thread overview]
Message-ID: <199710172339.MAA26949@ongaonga.chch.cri.nz> (raw)
In-Reply-To: <11680.877104611@hurl.cygnus.com>

Jeffrey A Law writes:
 >   > I was going to comment that the patch might be even better, if it
 >   > dealt with register + scaled register that some machines have (such
 >   > as the x86, ns32k, 88k to name the ones I've dealt with).
 > It's worth noting that patch only helps when the base/index is a hard reg,
 > which limits its usefulness on most of our platforms.  It's unclear if
 > the benefit for handling scaled register would outweigh the work involved.

Most of the utility of the patch occurs when an incoming function
argument is in a hard base (or possibly index) register.   

IMO, things would be simpler if two register addresses were
canonicalized so that the base register preceeded the index register,
i.e., (mem (plus (base_reg) (index_reg)).  This would reduce the
ambiguity when it comes to allocating base and index registers.

mph...

  reply	other threads:[~1997-10-17 20:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-17 12:53 meissner
1997-10-17 13:57 ` Jeffrey A Law
1997-10-17 20:51   ` Michael P. Hayes [this message]
1997-10-17 21:40     ` Jeffrey A Law
1997-10-20  9:43       ` Nick Ing-Simmons
1997-10-20 18:12         ` Joern Rennecke
1997-10-21  8:49           ` Nick Ing-Simmons
1997-10-21  9:25         ` John Carr
1997-10-17 12:53 meissner
1997-10-17 13:57 ` Jeffrey A Law
1997-10-17 20:51   ` Richard Henderson
     [not found] <199710170919.WAA23619@ongaonga.chch.cri.nz>
1997-10-17 13:57 ` Jeffrey A Law

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=199710172339.MAA26949@ongaonga.chch.cri.nz \
    --to=michaelh@ongaonga.chch.cri.nz \
    --cc=egcs@cygnus.com \
    --cc=gcc2@cygnus.com \
    --cc=law@cygnus.com \
    --cc=meissner@cygnus.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).