+2008-04-24 Ira Rosen <irar@il.ibm.com>
+
+ PR tree-optimization/35982
+ * tree-vect-analyze.c (vect_check_interleaving): Check that the
+ interleaved data-refs are of the same type.
+
2008-04-24 Danny Smith <dannysmith@users.net>
* c-format.c (check_format_info_main): Use strncmp rather than a magic prefix
+2008-04-24 Ira Rosen <irar@il.ibm.com>
+
+ PR tree-optimization/35982
+ * gcc.dg/vect/fast-math-pr35982.c: New.
+
2008-04-24 Danny Smith <dannysmith@users.net>
* gcc.dg/format/ms-warnI64-1.c: New file.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-require-effective-target vect_float } */
+/* { dg-require-effective-target vect_int } */
+
+struct mem
+{
+ float avg;
+ int len;
+};
+
+float method2_int16 (struct mem *mem)
+{
+ int i;
+ float avg;
+
+ for (i = 0; i < 100; ++i)
+ avg += mem[i].avg * (float) mem[i].len;
+
+ return avg;
+}
+
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_extract_even_odd } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" { xfail vect_extract_even_odd } } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
+
type_size_b = TREE_INT_CST_LOW (TYPE_SIZE_UNIT (TREE_TYPE (DR_REF (drb))));
if (type_size_a != type_size_b
- || tree_int_cst_compare (DR_STEP (dra), DR_STEP (drb)))
+ || tree_int_cst_compare (DR_STEP (dra), DR_STEP (drb))
+ || !types_compatible_p (TREE_TYPE (DR_REF (dra)),
+ TREE_TYPE (DR_REF (drb))))
return;
init_a = TREE_INT_CST_LOW (DR_INIT (dra));