]> git.ipfire.org Git - thirdparty/gcc.git/commit
s390: Check for ADDR_REGS in s390_decompose_addrstyle_without_index
authorStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Thu, 27 Jun 2024 13:46:24 +0000 (15:46 +0200)
committerStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Thu, 27 Jun 2024 13:46:24 +0000 (15:46 +0200)
commit187eeb99ec5289538923668de9d61a3138376817
tree2ef398c76013c895d2585ab1a34c174c430d05da
parent7886830bb45c4f5dca0496d4deae9a45204d78f5
s390: Check for ADDR_REGS in s390_decompose_addrstyle_without_index

An explicit check for address registers was not required so far since
during register allocation the processing of address constraints was
sufficient.  However, address constraints themself do not check for
REGNO_OK_FOR_{BASE,INDEX}_P.  Thus, with the newly introduced
late-combine pass in r15-1579-g792f97b44ffc5e we generate new insns with
invalid address registers which aren't fixed up afterwards.

Fixed by explicitly checking for address registers in
s390_decompose_addrstyle_without_index such that those new insns are
rejected.

gcc/ChangeLog:

PR target/115634
* config/s390/s390.cc (s390_decompose_addrstyle_without_index):
Check for ADDR_REGS in s390_decompose_addrstyle_without_index.
gcc/config/s390/s390.cc