[Bug rtl-optimization/78526] [7 Regression] ICE: in decompose, at rtl.h:2117 with -g -mavx512bw

2016-11-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78526

Jakub Jelinek  changed:

   What|Removed |Added

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

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

[Bug rtl-optimization/78526] [7 Regression] ICE: in decompose, at rtl.h:2117 with -g -mavx512bw

2016-11-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78526

--- Comment #4 from Jakub Jelinek  ---
Author: jakub
Date: Fri Nov 25 18:56:50 2016
New Revision: 242882

URL: https://gcc.gnu.org/viewcvs?rev=242882=gcc=rev
Log:
PR rtl-optimization/78526
* simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
beyond val's precision.

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

Added:
trunk/gcc/testsuite/gcc.dg/pr78526.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/simplify-rtx.c
trunk/gcc/testsuite/ChangeLog

[Bug rtl-optimization/78526] [7 Regression] ICE: in decompose, at rtl.h:2117 with -g -mavx512bw

2016-11-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78526

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek  ---
Created attachment 40152
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40152=edit
gcc7-pr78526.patch

Untested fix.

[Bug rtl-optimization/78526] [7 Regression] ICE: in decompose, at rtl.h:2117 with -g -mavx512bw

2016-11-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78526

--- Comment #2 from Jakub Jelinek  ---
What happens is that valtrack creates a paradoxical subreg:
(debug_insn 28 14 15 2 (var_location:V4TI D#2 (subreg:V4TI (reg:TI 94) 0)) -1
 (nil))
(insn 15 28 16 2 (set (subreg:TI (reg/v:V4TI 90 [ v ]) 0)
(reg:TI 94)) "pr78526.c":8 80 {*movti_internal}
 (expr_list:REG_DEAD (reg:TI 94)
(nil)))
during cse1 - with the meaning that nothing is known about the other elements
of the vector v, only about the first element.
But then simplify-rtx.c has bogus handling of CONST_WIDE_INT.
Though I'd say at least for debug info purposes we should be careful about
paradoxical subregs, because they mean the upper bits are not really defined
rather than zero or the value sign or zero extended.

[Bug rtl-optimization/78526] [7 Regression] ICE: in decompose, at rtl.h:2117 with -g -mavx512bw

2016-11-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78526

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-11-25
 CC||jakub at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Jakub Jelinek  ---
Started with r236630.

[Bug rtl-optimization/78526] [7 Regression] ICE: in decompose, at rtl.h:2117 with -g -mavx512bw

2016-11-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78526

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |7.0