Jeffrey Law - 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: Jeffrey Law
- To: Richard Sandiford
- Cc: Mark Mitchell , Bernd Schmidt <bernds_cb1 at t-online dot de>, Ian Lance Taylor , gcc-patches at gcc dot gnu dot org
- Date: Tue, 27 Feb 2007 12:52:46 -0700
- Subject: Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
- References: 874pqzw4w1.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> <87vei47ij9.fsf@firetop.home> <m3d54cy6k6.fsf@localhost.localdomain> <45D44F7F.6000405@t-online.de> <45DE5A9F.5000509@codesourcery.com> <1172529300.4129.135.camel@sweet.slc.redhat.com> <87slcr8rza.fsf@firetop.home> <1172600718.4129.210.camel@sweet.slc.redhat.com> <87ejob8le7.fsf@firetop.home>
- Reply-to: law at redhat dot com
On Tue, 2007-02-27 at 19:12 +0000, Richard Sandiford wrote:
Once you do that, there is no current need to make double_reg_address_ok an array of booleans, and doing so would just make the compiler slightly slower. So although I agree we should it if some other port needs it (i.e. if some other port allows disp(base,index) addresses for some modes and allows only plain (base,index) address for others), I don't think we should otherwise.
And you haven't addressed that point. Do you disagree that INDEX_REG_CLASS is supposed to be NO_REGS if no index regs are allowed? The validity of indexing is mode dependent on your target. For every mode that allows indexed addressing the set of valid index registers is the same.
I haven't really tested the attached patch except to verify that the provided testcase no longer aborts and that the reloads we generate for the problem insn look correct. However, I feel its a much more correct solution than what you're trying to do.
I honestly don't understand why you think my patch is unreasonable. Because it's not fixing the problem, it's papering over the problem.
I am rejecting your patch, over Ian's prior approval. I would ask that you look at the double_reg_address_ok patch -- I'm pretty sure it's a more correct fix. Unfortunately, I don't really have machines suitable for heavy stress testing the patch.
jeff
- Follow-Ups:
- 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
- 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
* From: Richard Sandiford - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Ian Lance Taylor - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Bernd Schmidt - Re: [RTL, ColdFire 24/63] Add support for a MODE_INDEX_REG_CLASS macro
* From: Mark Mitchell - 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
* From: Richard Sandiford
- 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] |