Commit d78789f5 by Marc Glisse Committed by Marc Glisse

PR71206: inconsistent types after match.pd transformation

2016-05-20  Marc Glisse  <marc.glisse@inria.fr>

	PR tree-optimization/71079
	PR tree-optimization/71206
gcc/
	* match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.

gcc/testsuite/
	* gcc.dg/tree-ssa/pr71206.c: New testcase.

From-SVN: r236504
parent 5b17a01c
2016-05-20 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/71079
PR tree-optimization/71206
* match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* tree-vectorizer.c (get_vec_alignment_for_decl): New static function. * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
......
...@@ -740,7 +740,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) ...@@ -740,7 +740,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
(bit_xor (convert1? (bit_xor:c @0 @1)) (convert2? (bit_xor:c @0 @2))) (bit_xor (convert1? (bit_xor:c @0 @1)) (convert2? (bit_xor:c @0 @2)))
(if (tree_nop_conversion_p (type, TREE_TYPE (@1)) (if (tree_nop_conversion_p (type, TREE_TYPE (@1))
&& tree_nop_conversion_p (type, TREE_TYPE (@2))) && tree_nop_conversion_p (type, TREE_TYPE (@2)))
(convert (bit_xor @1 @2)))) (bit_xor (convert @1) (convert @2))))
(simplify (simplify
(abs (abs@1 @0)) (abs (abs@1 @0))
......
2016-05-20 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/71079
PR tree-optimization/71206
* gcc.dg/tree-ssa/pr71206.c: New testcase.
2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* gcc.dg/vect/section-anchors-vect-70.c: New test-case. * gcc.dg/vect/section-anchors-vect-70.c: New test-case.
......
/* { dg-do compile } */
/* { dg-options "-O" } */
int f(int d, unsigned b) {
int i2 = b ^ 1;
int i4 = d ^ 1;
return i2 ^ i4;
}
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