diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2019-07-25 18:36:52 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2019-07-25 18:36:52 +0000 |
commit | 9f41de41eaf6d30d2b492c1f13d01dd8e90bba81 (patch) | |
tree | 010f97ca78980d7d9e3ff1db23236534eec25922 /gcc/lra-constraints.c | |
parent | 7649f2e444bae95d2b093354ace296386691b603 (diff) | |
download | gcc-9f41de41eaf6d30d2b492c1f13d01dd8e90bba81.zip gcc-9f41de41eaf6d30d2b492c1f13d01dd8e90bba81.tar.gz gcc-9f41de41eaf6d30d2b492c1f13d01dd8e90bba81.tar.bz2 |
re PR rtl-optimization/91223 (ICE: in curr_insn_transform, at lra-constraints.c:4459)
2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/91223
* lra-constraints.c (process_alt_operands): Fail for unsuccessful
matching with INOUT operand.
2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/91223
* gcc.target/i386/pr91223.c: New test.
From-SVN: r273810
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r-- | gcc/lra-constraints.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 55d8d13..bd9f85d 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -2171,6 +2171,14 @@ process_alt_operands (int only_alternative) } else { + /* If the operands do not match and one + operand is INOUT, we can not match them. + Try other possibilities, e.g. other + alternatives or commutative operand + exchange. */ + if (curr_static_id->operand[nop].type == OP_INOUT + || curr_static_id->operand[m].type == OP_INOUT) + break; /* Operands don't match. If the operands are different user defined explicit hard registers, then we cannot make them match |