More infrastructure to avoid bogus RTL on H8.
commit19859bd72119708c85cc6976b3547738be6f5b1c
authorJeff Law <jeffreyalaw@gmail.com>
Mon, 17 Oct 2022 23:42:27 +0000 (17 19:42 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Mon, 17 Oct 2022 23:45:29 +0000 (17 19:45 -0400)
tree571eb757c65525742636fb3a2dc54afb975cd855
parentf6e93b7b48195037d6c545104c952b97e05ad381
More infrastructure to avoid bogus RTL on H8.

Continuing the work to add constraints to avoid invalid RTL
with autoinc addressing modes.  Specifically this patch adds
the memory constraints similar to the pdp11.

gcc/

* config/h8300/constraints.md (Za..Zh): New constraints for
autoinc addresses using a specific register.
* config/h8300/h8300.cc (pre_incdec_with_reg): New function.
* config/h8300/h8300-protos.h (pre_incdec_with_reg): Add prototype.
gcc/config/h8300/constraints.md
gcc/config/h8300/h8300-protos.h
gcc/config/h8300/h8300.cc