PR tree-optimization/57741
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Jul 2013 11:54:09 +0000 (11:54 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Jul 2013 11:54:09 +0000 (11:54 +0000)
commit1d62df1c1d25ec827399172d15d046f50ddfbb5e
tree536b79dc2d2049d0001860af4f3197fa19933676
parent7cea39c9458cf9e4f98b22ab1b59de12bc2f203b
PR tree-optimization/57741
* tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
Allow REAL_CST step_exprs if flag_associative_math.
(get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.

* gcc.dg/vect/pr57741-1.c: New test.
* gcc.dg/vect/pr57741-2.c: New test.
* gcc.dg/vect/pr57741-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200600 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr57741-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr57741-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr57741-3.c [new file with mode: 0644]
gcc/tree-vect-loop.c