re PR rtl-optimization/81553 (ICE in immed_wide_int_const, at emit-rtl.c:607)
authorJakub Jelinek <jakub@redhat.com>
Sat, 25 Nov 2017 19:35:47 +0000 (20:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 25 Nov 2017 19:35:47 +0000 (20:35 +0100)
commite95be6330d3621d46cc6acc3dd4c45da5fd3f4b6
tree837ff96e857d02a1e51428a14240c34fe0a2c869
parent5a2707633bb664bd8a0f489dc9e311ab0a747d54
re PR rtl-optimization/81553 (ICE in immed_wide_int_const, at emit-rtl.c:607)

PR rtl-optimization/81553
* combine.c (simplify_if_then_else): In (if_then_else COND (OP Z C1) Z)
to (OP Z (mult COND (C1 * STORE_FLAG_VALUE))) optimization, if OP
is a shift where C1 has different mode than the whole shift, use C1's
mode for MULT rather than the shift's mode.

* gcc.c-torture/compile/pr81553.c: New test.

From-SVN: r255150
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr81553.c [new file with mode: 0644]