public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Q(backend): Indirect register access
@ 2002-10-11  5:42 Raimonds Cicans
  0 siblings, 0 replies; only message in thread
From: Raimonds Cicans @ 2002-10-11  5:42 UTC (permalink / raw)
  To: gcc

Hi!

Question:
How to define in .md file instructions which need
one of its register operands to be specified
not in instruction itself but in special field
(let call it REGNUMFIELD) in control register?

Simplest solution:
In assembler otput just prepend such instructions
with instruction wich set REGNUMFIELD with
needed register number.

Problems:
1. In many cases additional instructions are redundant.
2. Many instructions as side effect can set REGNUMFIELD


Any ideas for other solutions?

Maybe something like:
      REGNUMFIELD = force_reg (......., Register Number)?

But how to get 'Register Number' (as I understand
real 'Register Number' are available only on late
compilation stages)?

Will this solution solve problems 1. and 2. described above?


Raimonds Cicans

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-11 10:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-11  5:42 Q(backend): Indirect register access Raimonds Cicans

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).