diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-03-15 09:35:28 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-03-15 09:35:28 +0100 |
commit | fa7dde7ea2e02096ab3e727b8de930c2d6678f87 (patch) | |
tree | f3bb6c6e8210e683ecad13cc7a198f0e497ca0e3 /gcc/optabs.c | |
parent | c36b04c1461c2825f30760043fb216237d07ce39 (diff) | |
download | gcc-fa7dde7ea2e02096ab3e727b8de930c2d6678f87.zip gcc-fa7dde7ea2e02096ab3e727b8de930c2d6678f87.tar.gz gcc-fa7dde7ea2e02096ab3e727b8de930c2d6678f87.tar.bz2 |
re PR target/84860 (ICE in emit_move_insn, at expr.c:3717)
PR target/84860
* optabs.c (emit_conditional_move): Pass address of cmode's copy
rather than address of cmode as last argument to prepare_cmp_insn.
* gcc.c-torture/compile/pr84860.c: New test.
From-SVN: r258552
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 5f61e4e..53a147c 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -4345,9 +4345,10 @@ emit_conditional_move (rtx target, enum rtx_code code, rtx op0, rtx op1, save_pending_stack_adjust (&save); last = get_last_insn (); do_pending_stack_adjust (); + machine_mode cmpmode = cmode; prepare_cmp_insn (XEXP (comparison, 0), XEXP (comparison, 1), GET_CODE (comparison), NULL_RTX, unsignedp, - OPTAB_WIDEN, &comparison, &cmode); + OPTAB_WIDEN, &comparison, &cmpmode); if (comparison) { struct expand_operand ops[4]; |