PR tree-optimization/70372
* tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
build_all_ones_cst to also handle vector types correctly.
* gcc.dg/tree-ssa/pr70372.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234449
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-03-24 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/70372
+ * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
+ build_all_ones_cst to also handle vector types correctly.
+
2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/70381
+2016-03-24 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/70372
+ * gcc.dg/tree-ssa/pr70372.c: New testcase.
+
2016-03-23 Patrick Palka <ppalka@gcc.gnu.org>
PR c++/70347
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O -fno-tree-fre -w -Wno-psabi" } */
+
+typedef unsigned v2ti __attribute__ ((vector_size (32)));
+
+v2ti
+foo (v2ti u, v2ti v)
+{
+ u[0] >>= 0xf;
+ v ^= ~v;
+ v &= ~u;
+ v -= -u;
+ return v;
+}
}
ops->ordered_remove (i);
- add_to_ops_vec (ops, build_int_cst_type (op_type, -1));
+ add_to_ops_vec (ops, build_all_ones_cst (op_type));
ops->ordered_remove (currindex);
reassociate_stats.ops_eliminated ++;