[Bug target/68286] [6 Regression] ICE: in wide_int_to_tree, at tree.c:1468

2015-11-12 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68286

Markus Trippelsdorf  changed:

   What|Removed |Added

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

--- Comment #5 from Markus Trippelsdorf  ---
fixed

[Bug target/68286] [6 Regression] ICE: in wide_int_to_tree, at tree.c:1468

2015-11-12 Thread ienkovich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68286

--- Comment #4 from Ilya Enkovich  ---
Should be fixed by r230238.

[Bug target/68286] [6 Regression] ICE: in wide_int_to_tree, at tree.c:1468

2015-11-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68286

Richard Biener  changed:

   What|Removed |Added

Version|unknown |6.0
   Target Milestone|--- |6.0

[Bug target/68286] [6 Regression] ICE: in wide_int_to_tree, at tree.c:1468

2015-11-11 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68286

--- Comment #1 from Markus Trippelsdorf  ---
Started with r230098.

[Bug target/68286] [6 Regression] ICE: in wide_int_to_tree, at tree.c:1468

2015-11-11 Thread renlin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68286

Renlin Li  changed:

   What|Removed |Added

 Target|powerpc64le-unknown-linux-g |powerpc64le-unknown-linux-g
   |nu  |nu,
   ||arm-none-linux-gnueabihf
 CC||renlin at gcc dot gnu.org

--- Comment #3 from Renlin Li  ---
same issue happens on arm-none-linuxgnu-eabihf toolchain.

[Bug target/68286] [6 Regression] ICE: in wide_int_to_tree, at tree.c:1468

2015-11-11 Thread ienkovich at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68286

Ilya Enkovich  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2015-11-11
   Assignee|unassigned at gcc dot gnu.org  |ienkovich at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Ilya Enkovich  ---
Forward propagation produces vector comparison which is not expanded as
VEC_COND_EXPR as it was before.  Since we allow vector comparison not lowered
in case it can be expanded as VEC_COND_EXPR, expand should also be fixed.

Trying this patch:

diff --git a/gcc/expr.c b/gcc/expr.c
index 03936ee..bd43dc4 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -11128,7 +11128,8 @@ do_store_flag (sepops ops, rtx target, machine_mode
mode)
   if (TREE_CODE (ops->type) == VECTOR_TYPE)
 {
   tree ifexp = build2 (ops->code, ops->type, arg0, arg1);
-  if (VECTOR_BOOLEAN_TYPE_P (ops->type))
+  if (VECTOR_BOOLEAN_TYPE_P (ops->type)
+ && expand_vec_cmp_expr_p (TREE_TYPE (arg0), ops->type))
return expand_vec_cmp_expr (ops->type, ifexp, target);
   else
{