This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using SCRATCH Register for a mov op,


I'm wondering if it has sthg to do with the Macro
defined in .h ...

#define PREFERRED_RELOAD_CLASS(X,CLASS)	CLASS

#define CLASS_LIKELY_SPILLED_P(c) GENERAL_REGS

#define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)				\
{									\
  (X) = legitimize_address (X, OLDX, MODE);				\
  if (memory_address_p (MODE, X))					\
    goto WIN;								\
}

#define GO_IF_MODE_DEPENDENT_ADDRESS(ADDR,LABEL) \
{}

Is there other macro I got to define to help reload
pass generate a SCRATCH register ?
 --- Richard Henderson <rth@redhat.com> a écrit : > On
Mon, Nov 04, 2002 at 11:03:12AM +0100, Pierre
> Mallard wrote:
> > (define_insn "*movhi"
> >   [(set	(match_operand:HI 0 "nonimmediate_operand"
> 
> > "=r,r,m,r,r")
> >        	(match_operand:HI 1 "general_operand"     
>  
> > "r,m,r,I,i"))
> >    (clobber (match_scratch:QI 2			
> "=X,&r,X,X,X"))]
> 
> Looks ok; no idea what's going wrong off the top of
> my head.
> 
> 
> r~ 

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]