AVR cc0 conversion - adjust peepholes
authorSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Fri, 30 Apr 2021 16:34:11 +0000 (16:34 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Fri, 30 Apr 2021 17:15:23 +0000 (17:15 +0000)
commit5672fe9da4ab4e8787c288b64008251065c67c98
tree8e1c36449931e38b7fd11f160369773faa0b2f56
parentdc4202bd24fcc13dab80c4520cb53a2302c49929
AVR cc0 conversion - adjust peepholes

This patch adjusts peepholes to match and generate parallels with
a clobber of REG_CC.

It also sets mov<mode>_insn as the name of the pattern for the split
insn (rather than the define_insn_and_split), so that
avr_2word_insn_p, which looks for CODE_FOR_mov<mode>_insn, works
correctly. This is required for the *cpse.eq peephole to fire, and
also helps generate better code for avr_out_sbxx_branch.

gcc/ChangeLog:

* config/avr/avr.md: Adjust peepholes to match and
generate parallels with clobber of REG_CC.
(mov<mode>_insn): Rename to mov<mode>_insn_split.
(*mov<mode>_insn): Rename to mov<mode>_insn.
gcc/config/avr/avr.md