Roman Zippel - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro (original) (raw)
This is the mail archive of the gcc-patches@gcc.gnu.orgmailing 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] |
- From: Roman Zippel
- To: Jeffrey Law
- Cc: Richard Sandiford , gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Wed, 14 Feb 2007 20:01:55 +0100 (CET)
- Subject: Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
- References: 874pqzw4w1.fsf@firetop.home <87wt3vtalc.fsf_-_@firetop.home> <87slejtaia.fsf_-_@firetop.home> <87odp7tag7.fsf_-_@firetop.home> <87k5zvtad6.fsf_-_@firetop.home> <87fyajtaas.fsf_-_@firetop.home> <87bql7ta58.fsf_-_@firetop.home> <877ivvt9ws.fsf_-_@firetop.home> <873b6jt9r5.fsf_-_@firetop.home> <87y7obrv3h.fsf_-_@firetop.home> <87tzyzrv1p.fsf_-_@firetop.home> <87ps9nruzl.fsf_-_@firetop.home> <87lkkbrux2.fsf_-_@firetop.home> <87hcuzruvd.fsf_-_@firetop.home> <87d55nruu3.fsf_-_@firetop.home> <878xgbruqs.fsf_-_@firetop.home> 1168457319.28081.615.camel@sweet.slc.redhat.com 87k5zuinc0.fsf@firetop.home 1168983686.28081.842.camel@sweet.slc.redhat.com 87ps9efc4t.fsf@talisman.home <1171321913.4134.162.camel@sweet.slc.redhat.com> <87bqjx9j0r.fsf@firetop.home> <1171472988.4134.196.camel@sweet.slc.redhat.com>
Hi,
On Wed, 14 Feb 2007, Jeffrey Law wrote:
So, from an optimisation perspective, I think it is reasonable to accept indexed addresses for SImode and not for SFmode. I'm still not sure whether you disagree with that. I disagree with that if the port allows integer values in FP regsters and the hardware can't do FP indexed loads/stores because G_I_L_A could be passed SImode but generate an FP load/store.
m68k doesn't allow integer values in fp register (rejected in m68k_regno_mode_ok), thus...
Now G_I_L_A has a mode argument precisely so that the legitimacy of an address can depend on the mode. However, G_I_L_A is not the only backend interface for describing addressing modes; we also have the BASE_REG_CLASS and INDEX_REG_CLASS macros. These latter macros are all that reload looks at when legitimizing addresses, so they must of course agree with G_I_L_A. I disagree on this point and as I've stated before I think you're using this to avoid fixing the backend to deal with a broken G_I_L_A.
...our G_I_L_A isn't broken in this regard.
bye, Roman
- References:
- Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Richard Sandiford - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Jeffrey Law
- Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |