[PR99663] Don't use unknown constraint for address constraint in process_address_1.
authorVladimir N. Makarov <vmakarov@redhat.com>
Fri, 19 Mar 2021 19:34:48 +0000 (15:34 -0400)
committerVladimir N. Makarov <vmakarov@redhat.com>
Fri, 19 Mar 2021 19:34:48 +0000 (15:34 -0400)
commitd81019db099ad95febbb2d4b4afd8cbe95762062
tree7777fafce79675443efef344fe13bea882370117
parent82bb66730bc42b8694fdebef607ea6e49e8496bf
[PR99663] Don't use unknown constraint for address constraint in process_address_1.

s390x has insns using several alternatives with address constraints.  Even
if we don't know at this stage what alternative will be used, we still can say
that is an address constraint.  So don't use unknown constraint in this
case when there are multiple constraints or/and alternative.

gcc/ChangeLog:

PR target/99663
* lra-constraints.c (process_address_1): Don't use unknown
constraint for address constraint.

gcc/testsuite/ChangeLog:

PR target/99663
* gcc.target/s390/pr99663.c: New.
gcc/lra-constraints.c
gcc/testsuite/gcc.target/s390/pr99663.c [new file with mode: 0644]