[Bug rtl-optimization/81553] [7/8 Regression] ICE in immed_wide_int_const, at emit-rtl.c:607
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 25 19:36:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81553
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Nov 25 19:35:47 2017
New Revision: 255150
URL: https://gcc.gnu.org/viewcvs?rev=255150&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr81553.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/combine.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list