[Bug rtl-optimization/87065] [7 Regression] combine causes ICE in trunc_int_for_mode

2018-10-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87065

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #14 from Jakub Jelinek  ---
Fixed.

[Bug rtl-optimization/87065] [7 Regression] combine causes ICE in trunc_int_for_mode

2018-10-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87065

--- Comment #13 from Jakub Jelinek  ---
Author: jakub
Date: Fri Oct 12 17:32:38 2018
New Revision: 265120

URL: https://gcc.gnu.org/viewcvs?rev=265120=gcc=rev
Log:
Backported from mainline
2018-08-27  Jakub Jelinek  

PR rtl-optimization/87065
* combine.c (simplify_if_then_else): Formatting fix.
(if_then_else_cond): Guard MULT optimization with SCALAR_INT_MODE_P
check.
(known_cond): Don't return const_true_rtx for vector modes.  Use
CONST0_RTX instead of const0_rtx.  Formatting fixes.

* gcc.target/i386/pr87065.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.target/i386/pr87065.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/combine.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug rtl-optimization/87065] [7 Regression] combine causes ICE in trunc_int_for_mode

2018-10-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87065

--- Comment #12 from Jakub Jelinek  ---
Author: jakub
Date: Fri Oct 12 14:53:54 2018
New Revision: 265110

URL: https://gcc.gnu.org/viewcvs?rev=265110=gcc=rev
Log:
Backported from mainline
2018-08-27  Jakub Jelinek  

PR rtl-optimization/87065
* combine.c (simplify_if_then_else): Formatting fix.
(if_then_else_cond): Guard MULT optimization with SCALAR_INT_MODE_P
check.
(known_cond): Don't return const_true_rtx for vector modes.  Use
CONST0_RTX instead of const0_rtx.  Formatting fixes.

* gcc.target/i386/pr87065.c: New test.

Added:
branches/gcc-7-branch/gcc/testsuite/gcc.target/i386/pr87065.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/combine.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog

[Bug rtl-optimization/87065] [7 Regression] combine causes ICE in trunc_int_for_mode

2018-08-27 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87065

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||jakub at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org
Summary|[7/8/9 Regression] combine  |[7 Regression] combine
   |causes ICE in   |causes ICE in
   |trunc_int_for_mode  |trunc_int_for_mode

--- Comment #11 from Jakub Jelinek  ---
Fixed for 8.3+ so far.