https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101697
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <l...@gcc.gnu.org>: https://gcc.gnu.org/g:4374c424a60777a7658050f0aeb1dcc9af915647 commit r13-3348-g4374c424a60777a7658050f0aeb1dcc9af915647 Author: Jeff Law <jeffreya...@gmail.com> Date: Mon Oct 17 19:52:18 2022 -0400 Fix bogus RTL on the H8. This patch actually fixes the bogus RTL seen in PR101697. Basically we continue to use the insn condition to catch most of the problem cases related to autoinc addressing modes. This patch adds constraints which can guide reload (and hopefully LRA) away from doing blind replacements during register elimination that would ultimately result in bogus RTL. The idea is from Paul K. who has done something very similar on the pdp11. I guess it shouldn't be a big surprise that the H8 and pdp11 need the same kind of handling given some of the similarities in their architectures. gcc/ PR target/101697 * config/h8300/combiner.md: Replace '<' preincment constraint with ZA/Z1..ZH/Z7 combinations. * config/h8300/movepush.md: Similarly