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: Jan Hubicka <jh at suse dot cz>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 30 Nov 2002 19:33:27 +0100
- Subject: Re: [patch] h8300.md: Add one define_insn_and_split.
- References: <20021129.111027.26525636.kazu@cs.umass.edu>
> Hi,
>
> 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?
Honza