2016-10-31 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/77860
+ * tree-ssa-reassoc.c (eliminate_using_constants): Handle
+ also integral complex and vector constants.
+
* dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
optimize_macinfo_range, save_macinfo_strings): Replace
DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
+2016-10-31 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/77860
+ * gcc.dg/pr77860.c: New test.
+
2016-10-31 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* gcc.dg/lto/pr60449_0.c: Skip for avr.
* g++.dg/warn/Wshadow-local-1.C: Likewise.
* g++.dg/warn/Wshadow-local-2.C: Likewise.
-
2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/71915
--- /dev/null
+/* PR tree-optimization/77860 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fno-tree-vrp -fno-tree-forwprop -Wno-psabi" } */
+
+typedef unsigned short V __attribute__((vector_size (16)));
+
+V
+foo (V x, V y)
+{
+ V a = -x;
+ V b = -y;
+ return a * b;
+}
tree type = TREE_TYPE (oelast->op);
if (oelast->rank == 0
- && (INTEGRAL_TYPE_P (type) || FLOAT_TYPE_P (type)))
+ && (ANY_INTEGRAL_TYPE_P (type) || FLOAT_TYPE_P (type)))
{
switch (opcode)
{