This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Using SCRATCH Register for a mov op,
- From: Pierre Mallard <pierremallard at yahoo dot fr>
- To: gcc at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Oct 2002 17:45:57 +0100 (CET)
- Subject: Using SCRATCH Register for a mov op,
Hi,
I'd like to use scratch reg for operation such as
reg X = mem(reg X) generated during the RELOAD PASS.
with X a number of a hard reg same for both side of
expression
Unfortunately it appears that a good means to obtain
the SCRATCH register from gcc is to use reload_in.
But this doesn't work in my proc cause I have no
different classes of regs (for me they are all
equivalent), I can't be able to define
SECONDARY_RELOAD_CLASS or things like this cause it
will abort if using same CLASS of regs ().
So I have no idea how to have a SCRATCH reg generated
with the op seen above.
Please Help Me
Regards
Pierre Mallard
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com