[Bug middle-end/70050] [6 Regression] ICE: tree check: expected integer_type or enumeral_type or boolean_type or real_type or fixed_point_type, have vector_type in generic_simplify_162, at generic-match.c:6175

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 2 17:28:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70050

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Maybe missing INTEGRAL_TYPE_P (type)
--- a/gcc/match.pd
+++ b/gcc/match.pd
@@ -293,7 +293,8 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
 /* X % -Y is the same as X % Y.  */
 (simplify
  (trunc_mod @0 (convert? (negate @1)))
- (if (!TYPE_UNSIGNED (type)
+ (if (INTEGRAL_TYPE_P (type)
+      && !TYPE_UNSIGNED (type)
       && !TYPE_OVERFLOW_TRAPS (type)
       && tree_nop_conversion_p (type, TREE_TYPE (@1))
       /* Avoid this transformation if X might be INT_MIN or


More information about the Gcc-bugs mailing list