[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-28 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-28 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 --- Comment #13 from Marek Polacek 2013-03-28 11:15:20 UTC --- Author: mpolacek Date: Thu Mar 28 11:14:44 2013 New Revision: 197192 URL: http://gcc.gnu.org/viewcvs?rev=197192&root=gcc&view=rev Log: PR tree-optimization/56695 * tree-v

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-27 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unas

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-27 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 --- Comment #11 from Richard Biener 2013-03-27 10:10:06 UTC --- And in tree-cfg.c:verify_gimple_comparison properly establish rules for the signedness of the vector comparison result.

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-27 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 --- Comment #10 from Richard Biener 2013-03-27 10:08:02 UTC --- (In reply to comment #9) > That said, it should look like, unconditionally(!) > > unsigned int prec = GET_MODE_BITSIZE (TYPE_MODE (TREE_TYPE (vectype))); > tree

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-27 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 --- Comment #9 from Richard Biener 2013-03-27 09:57:41 UTC --- That said, it should look like, unconditionally(!) unsigned int prec = GET_MODE_BITSIZE (TYPE_MODE (TREE_TYPE (vectype))); tree cmp_type = build_nonstandard_integ

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-27 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 --- Comment #8 from Richard Biener 2013-03-27 09:53:59 UTC --- (In reply to comment #2) > In tree-vect-stmts.c: > > if (!INTEGRAL_TYPE_P (TREE_TYPE (vectype))) > { > unsigned int prec = GET_MODE_BITSIZE (TYPE_MODE (TREE_TYP

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-26 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 --- Comment #7 from Marek Polacek 2013-03-26 16:20:39 UTC --- (In reply to comment #6) > Created attachment 29733 [details] > Untested patch > > I was thinking about something like this. In 4.8, I added vec_cond_expr > expansion when t

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-26 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 --- Comment #6 from Marc Glisse 2013-03-26 16:03:04 UTC --- Created attachment 29733 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29733 Untested patch I was thinking about something like this. In 4.8, I added vec_cond_expr expan

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-26 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 --- Comment #5 from Marek Polacek 2013-03-26 15:20:34 UTC --- vectorizable_condition gets this stmt: patt_10 = i.1_17 == 0 ? 1 : 0; We can't do just if (TYPE_UNSIGNED (TREE_TYPE (vectype))) return false; which quashes the ICE be

[Bug tree-optimization/56695] [4.9 Regression] ICE in expand_vec_cond_expr, at optabs.c:6751

2013-03-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56695 Richard Biener changed: What|Removed |Added Known to work||4.8.0 Target Milestone|---