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: [RX] Fix PR 83831 -- Unused bclr, bnot, bset insns


On Tue, 2018-02-13 at 17:04 +0000, Nick Clifton wrote:
> 
> > gcc/ChangeLog:
> > 
> > 	PR target/83831
> > 	* config/rx/rx-protos.h (rx_reg_dead_or_unused_after_insn,
> > 	rx_copy_reg_dead_or_unused_notes, rx_fuse_in_memory_bitop): New
> > 	declarations.
> > 	(set_of_reg): New struct.
> > 	(rx_find_set_of_reg, rx_find_use_of_reg): New functions.
> > 	* config/rx/rx.c (rx_reg_dead_or_unused_after_insn,
> > 	rx_copy_reg_dead_or_unused_notes, rx_fuse_in_memory_bitop): New
> > 	functions.
> > 	* config/rx/rx.md (andsi3, iorsi3, xorsi3): Convert to insn_and_split.
> > 	Split into bitclr, bitset, bitinvert patterns if appropriate.
> > 	(*bitset, *bitinvert, *bitclr): Convert to named insn_and_split and
> > 	use rx_fuse_in_memory_bitop.
> > 	(*bitset_in_memory, *bitinvert_in_memory, *bitclr_in_memory): Convert
> > 	to named insn, correct maximum insn length.
> > 
> > gcc/testsuite/ChangeLog:
> > 
> > 	PR target/83831
> > 	* gcc.target/rx/pr83831.c: New tests.

> Approved - please apply - and thanks very much for doing this!

Thanks!  Committed as r257655.

Cheers,
Oleg


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