This is the mail archive of the gcc-patches@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: [patch] h8300.md: Add one define_insn_and_split.


> 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


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