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: RTL generation patterns


> Just to check myself:
> Isn't 
> 
> 	mem/f:SI (plus:SI (reg:SI 28)
>                  (const_int -16 [0xfffffff0])) 0)
> 
> just a simple 'indexed' location like :
> 	insn -16(Rn), Rm
> ('insn' content of memory pointed by Rn-16 to Rm) ?

It is.
> 
> I think, if legitimate_address_p returns true for operands which satisfy:
> 	GET_CODE(x)==PLUS && REG_P(XEXP(x,0)) && GET_CODE(XEXP(x,1)) == CONST_INT
> this is.

Yes, but I guess it goes other way around - it sees operand (const_int 1)
and decides to load that one into register first. See beggining of emit_move_insn
and force_reg calls. It does so to help optimizations.

Honza
> Am I wrong?
> 
> ~d
> 
> > Honza
> > > 
> > > regards,
> > > danish
> > > 
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Greetings - Send FREE e-cards for every occasion!
> > > http://greetings.yahoo.com
> > 
> 
> 
> *********************************************************************
>    ("`-''-/").___..--''"`-._     (\       Dimmy the Wild      UA1ACZ
>     `6_ 6  )   `-.  (     ).`-.__.`)      Enterprise Information Sys 
>     (_Y_.)'  ._   )  `._ `. ``-..-'       Nevsky prospekt,   20 / 44
>   _..`--'_..-_/  /--'_.' ,'               Saint Petersburg,   Russia
>  (il),-''  (li),'  ((!.-'                 +7 (812) 314-8860, 5585314
> *********************************************************************


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