aboutsummaryrefslogtreecommitdiff
path: root/gcc/lra-constraints.c
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>2018-03-23 19:31:00 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>2018-03-23 19:31:00 +0000
commita426543a1f31388186edb92036a87032c66bcd17 (patch)
tree93bc61e8a59ad00fb88c653ae63c761dcbe19d30 /gcc/lra-constraints.c
parent63028caaeb63f5a3fa1dcabaae10fe5902a39048 (diff)
downloadgcc-a426543a1f31388186edb92036a87032c66bcd17.zip
gcc-a426543a1f31388186edb92036a87032c66bcd17.tar.gz
gcc-a426543a1f31388186edb92036a87032c66bcd17.tar.bz2
re PR inline-asm/85030 (internal compiler error: Floating point exception (validate_subreg()))
2018-03-23 Vladimir Makarov <vmakarov@redhat.com> PR inline-asm/85030 * lra-constraints.c (process_alt_operands): Don't match BLKmode and non BLKmode operands. 2018-03-23 Vladimir Makarov <vmakarov@redhat.com> PR inline-asm/85030 * testsuite/gcc.target/i386/pr85030.c: New. From-SVN: r258820
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r--gcc/lra-constraints.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index 31faefa..0dd4787 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -2118,6 +2118,14 @@ process_alt_operands (int only_alternative)
GET_MODE_SIZE (biggest_mode[nop])))
break;
+ /* Don't match wrong asm insn operands for proper
+ diagnostic later. */
+ if (INSN_CODE (curr_insn) < 0
+ && (curr_operand_mode[m] == BLKmode
+ || curr_operand_mode[nop] == BLKmode)
+ && curr_operand_mode[m] != curr_operand_mode[nop])
+ break;
+
this_alternative_matches = m;
m_hregno = get_hard_regno (*curr_id->operand_loc[m], false);
/* We are supposed to match a previous operand.