diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-31 23:07:25 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-31 23:07:25 +0000 |
commit | ba680c4be02faca6a18f63254d436465174e3049 (patch) | |
tree | 73f806204342b65cfc56e80c487c1fc421798933 | |
parent | b6f90b23bddd1f88248fd38b80466c796c234390 (diff) | |
download | gcc-ba680c4be02faca6a18f63254d436465174e3049.tar.gz |
PR tree-optimization/21817
* tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100410 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr21817-1.c | 12 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-im.c | 1 |
4 files changed, 23 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb29e7ca693..988740244b7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-05-31 Zdenek Dvorak <dvorakz@suse.cz> + + PR tree-optimization/21817 + * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST. + 2005-05-31 Pat Haugen <pthaugen@us.ibm.com> * loop.c (loop_invariant_p, valid_initial_value_p): Revert last diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3d27673835d..7e75d3088f0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-05-31 Zdenek Dvorak <dvorakz@suse.cz> + + PR tree-optimization/21817 + * gcc.dg/torture/pr21817-1.c: New. + 2005-05-31 Nathan Sidwell <nathan@codesourcery.com> PR c++/21165 diff --git a/gcc/testsuite/gcc.dg/torture/pr21817-1.c b/gcc/testsuite/gcc.dg/torture/pr21817-1.c new file mode 100644 index 00000000000..524c798c990 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr21817-1.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ + +typedef float v4sf __attribute__((vector_size(16))); +v4sf value; +void foo(void) +{ + unsigned int band; + for(band=0; band < 2; band++) + { + value += (v4sf){1e9f,1e9f,1e9f,1e9f}; + } +} diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c index 99dab7e4053..dc9002f71fe 100644 --- a/gcc/tree-ssa-loop-im.c +++ b/gcc/tree-ssa-loop-im.c @@ -201,6 +201,7 @@ for_each_index (tree *addr_p, bool (*cbck) (tree, tree *, void *), void *data) case PARM_DECL: case STRING_CST: case RESULT_DECL: + case VECTOR_CST: return true; default: |