Commit 0e37a1c2 by Ira Rosen Committed by Ira Rosen

re PR target/35982 (ICE while building mplayer on ppc with -O3 -ffast-math -mcpu=970)

	PR tree-optimization/35982
	* tree-vect-analyze.c (vect_check_interleaving): Check that the
	interleaved data-refs are of the same type.

From-SVN: r134624
parent f9f9640f
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.
/* { 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" } } */
......@@ -1060,7 +1060,9 @@ vect_check_interleaving (struct data_reference *dra,
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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment