Commit a2a743a1 by Marek Polacek Committed by Marek Polacek

re PR middle-end/70050 (ICE: tree check: expected integer_type or enumeral_type…

re PR middle-end/70050 (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)

	PR middle-end/70050
	* match.pd (X % -Y): Add INTEGRAL_TYPE_P check.

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

From-SVN: r233937
parent fd2298e3
2016-03-03 Marek Polacek <polacek@redhat.com>
PR middle-end/70050
* match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
2016-03-03 Martin Liska <mliska@suse.cz> 2016-03-03 Martin Liska <mliska@suse.cz>
PR tree-optimization/70043 PR tree-optimization/70043
......
...@@ -293,7 +293,8 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) ...@@ -293,7 +293,8 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
/* X % -Y is the same as X % Y. */ /* X % -Y is the same as X % Y. */
(simplify (simplify
(trunc_mod @0 (convert? (negate @1))) (trunc_mod @0 (convert? (negate @1)))
(if (!TYPE_UNSIGNED (type) (if (INTEGRAL_TYPE_P (type)
&& !TYPE_UNSIGNED (type)
&& !TYPE_OVERFLOW_TRAPS (type) && !TYPE_OVERFLOW_TRAPS (type)
&& tree_nop_conversion_p (type, TREE_TYPE (@1)) && tree_nop_conversion_p (type, TREE_TYPE (@1))
/* Avoid this transformation if X might be INT_MIN or /* Avoid this transformation if X might be INT_MIN or
......
2016-03-03 Marek Polacek <polacek@redhat.com>
PR middle-end/70050
* gcc.dg/pr70050.c: New test.
2016-03-03 James Greenhalgh <james.greenhalgh@arm.com> 2016-03-03 James Greenhalgh <james.greenhalgh@arm.com>
* gcc.dg/vect/bb-slp-34.c: Don't XFAIL for ARM/AArch64. * gcc.dg/vect/bb-slp-34.c: Don't XFAIL for ARM/AArch64.
......
/* PR middle-end/70025 */
/* { dg-do compile } */
/* { dg-options "-Wno-psabi" } */
typedef int v8si __attribute__ ((vector_size (32)));
v8si
foo (v8si v)
{
return v %= -v;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment