This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: adding a new register type to i386.h, and add spill/fill support
- From: Tyler Anderson <tyleranderson5 at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 24 Oct 2005 06:31:29 -0700 (PDT)
- Subject: Re: adding a new register type to i386.h, and add spill/fill support
I've gotten much further. I've added the new register
type to just about everywhere I can think of.
Then I was getting a cannot find a spill register
error.
Any thoughts?
Tyler
--- Ian Lance Taylor <ian@airs.com> wrote:
> Tyler Anderson <tyleranderson5@yahoo.com> writes:
>
> > I've already added the new type to i386.h,
> however, I
> > think I'm missing something in the #define
> > REG_CLASS_CONTENTS section. Could anyone point me
> to
> > more documentation about what each bit means? We
> need
> > to add a new register type, and extend the # of
> > existing registers. Extending the # of a register
> > seems easy, but it's unclear to me if it has been
> done
> > right since I don't know what each bit set in the
> > REG_CLASS_CONTENTS define is.
>
> Well, there is documentation in the internals
> manual, of course.
>
> Each bit in each entry in REG_CLASS_CONTENTS
> corresponds to a
> particular register. Which register it means is
> target specific, but
> you can figure it out based on, e.g.,
> REGISTER_NAMES. For example,
> for the i386, bit 0 is ax, bit 1 is dx, etc.
>
> Ian
>
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com