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
This commit is contained in:
parent
5b17a01caa
commit
d78789f516
4 changed files with 21 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
|
@ -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)))
|
||||
(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))
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
8
gcc/testsuite/gcc.dg/tree-ssa/71206.c
Normal file
8
gcc/testsuite/gcc.dg/tree-ssa/71206.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O" } */
|
||||
|
||||
int f(int d, unsigned b) {
|
||||
int i2 = b ^ 1;
|
||||
int i4 = d ^ 1;
|
||||
return i2 ^ i4;
|
||||
}
|
Loading…
Add table
Reference in a new issue