re PR middle-end/56548 (ICE in emit_move_insn, at expr.c:3486 with -march=pentium...
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 6 Mar 2013 17:18:46 +0000 (18:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 6 Mar 2013 17:18:46 +0000 (18:18 +0100)
commita72d87803e238ec0302aede5ac0267a02c42085e
treeed41f33979c0edc53fadd53f349690eabb055f20
parent28937f1196166ef33c303ff09f0d7f4936faec81
re PR middle-end/56548 (ICE in emit_move_insn, at expr.c:3486 with -march=pentium{pro,2,3} -O3)

PR middle-end/56548
* expr.c (expand_cond_expr_using_cmove): When expanding cmove in
promoted mode, convert the result back to the original mode.

* gcc.dg/pr56548.c: New test.

From-SVN: r196498
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr56548.c [new file with mode: 0644]