[Bug tree-optimization/95297] ICE: Segmentation fault

2020-05-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95297

Richard Biener  changed:

   What|Removed |Added

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

--- Comment #7 from Richard Biener  ---
Fixed.

[Bug tree-optimization/95297] ICE: Segmentation fault

2020-05-25 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95297

--- Comment #6 from CVS Commits  ---
The master branch has been updated by Richard Biener :

https://gcc.gnu.org/g:d31694544d2d805151899ab0a0bc654767035ad6

commit r11-607-gd31694544d2d805151899ab0a0bc654767035ad6
Author: Richard Biener 
Date:   Mon May 25 11:14:03 2020 +0200

tree-optimization/95297 - handle scalar shift arg for SLP invariant vectype

This skips invariant vector type setting for a scalar shift argument.

2020-05-25  Richard Biener  

PR tree-optimization/95297
* tree-vect-stmts.c (vectorizable_shift): For scalar_shift_arg
skip updating operand 1 vector type.

* g++.dg/vect/pr95297.cc: New testcase.
* g++.dg/vect/pr95290.cc: Likewise.

[Bug tree-optimization/95297] ICE: Segmentation fault

2020-05-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95297

Richard Biener  changed:

   What|Removed |Added

 CC||dcb314 at hotmail dot com

--- Comment #5 from Richard Biener  ---
*** Bug 95290 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/95297] ICE: Segmentation fault

2020-05-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95297

--- Comment #4 from Richard Biener  ---
OK, so here we're using a scalar shift arg - this is also not reflected in the
SLP tree.  Ideally we'd add a vect_scalar_def for this.

[Bug tree-optimization/95297] ICE: Segmentation fault

2020-05-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95297

--- Comment #3 from Richard Biener  ---
w/o C++ headers:

extern bool var_10;
extern int var_16;
extern short var_17;
extern long var_18;
extern int arr_3[][13];

int min(const int , const int )
{
  return a < b ? a : b;
}

void test() {
for (short a = 0; a < 010; a++)
  for (char b = 0; b < 012; b++)
arr_3[a][b] = min(-var_10, 0) + 2147483647 >> var_10;
var_16 = (bool)4;
var_17 = 0;
var_18 = -1594153176;
}

[Bug tree-optimization/95297] ICE: Segmentation fault

2020-05-25 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95297

Martin Liška  changed:

   What|Removed |Added

 CC||marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška  ---
Same can be seen for:
gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/vshift-5.c -mavx512vnni
-O3

[Bug tree-optimization/95297] ICE: Segmentation fault

2020-05-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95297

Richard Biener  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org
 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Last reconfirmed||2020-05-25

--- Comment #1 from Richard Biener  ---
Mine.