This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] h8300.md: Add one define_insn_and_split.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: jh at suse dot cz
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 01 Dec 2002 10:07:16 -0500 (EST)
- Subject: Re: [patch] h8300.md: Add one define_insn_and_split.
- References: <20021129.111027.26525636.kazu@cs.umass.edu><20021130183327.GA24499@atrey.karlin.mff.cuni.cz>
Hi Honza,
> > Attached is a patch to add a define_insn_and_split pattern.
> >
> > Without the patch, the bit test insns are not generated for things
> > like p[1] & 0x40, where p is a pointer to unsigned char *. The reason
> > is that the H8 bit test insn does not accept an address with an
> > offset.
> >
> > The patch adds an insn to accept such address and then later split
> > that into a load and a bit test.
> Can't this be done using combiner splitter?
Do you mean a define_split without reload_completed in the condition?
Can a define_split request a scratch reg just like define_peephole2?
Kazu Hirata