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
+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>
* tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
(bit_xor (convert1? (bit_xor:c @0 @1)) (convert2? (bit_xor:c @0 @2)))
(if (tree_nop_conversion_p (type, TREE_TYPE (@1))
&& tree_nop_conversion_p (type, TREE_TYPE (@2)))
- (convert (bit_xor @1 @2))))
+ (bit_xor (convert @1) (convert @2))))
(simplify
(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>
* gcc.dg/vect/section-anchors-vect-70.c: New test-case.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O" } */
+
+int f(int d, unsigned b) {
+ int i2 = b ^ 1;
+ int i4 = d ^ 1;
+ return i2 ^ i4;
+}