diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2013-05-13 11:30:50 +0200 |
---|---|---|
committer | Marc Glisse <glisse@gcc.gnu.org> | 2013-05-13 09:30:50 +0000 |
commit | 640bfeb25ce9b2f645c75d1e04ecce9ad74c4be1 (patch) | |
tree | ed915c07d5e51d4f597a85fe3b3ee5781b72abfd /gcc/tree.h | |
parent | 198fe1bfebf81e2a13b223bedcb41ed34d426862 (diff) | |
download | gcc-640bfeb25ce9b2f645c75d1e04ecce9ad74c4be1.zip gcc-640bfeb25ce9b2f645c75d1e04ecce9ad74c4be1.tar.gz gcc-640bfeb25ce9b2f645c75d1e04ecce9ad74c4be1.tar.bz2 |
tree-vect-generic.c (uniform_vector_p): Move ...
2013-05-13 Marc Glisse <marc.glisse@inria.fr>
gcc/
* tree-vect-generic.c (uniform_vector_p): Move ...
* tree.c (uniform_vector_p): ... here.
* tree.h (uniform_vector_p): Declare it.
* fold-const.c (fold_binary_loc) <shift>: Turn the second argument
into a scalar.
gcc/testsuite/
* gcc.dg/vector-shift-2.c: New testcase.
From-SVN: r198819
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5291,6 +5291,11 @@ extern tree first_field (const_tree); extern bool initializer_zerop (const_tree); +/* Given a vector VEC, return its first element if all elements are + the same. Otherwise return NULL_TREE. */ + +extern tree uniform_vector_p (const_tree); + /* Given a CONSTRUCTOR CTOR, return the element values as a vector. */ extern vec<tree, va_gc> *ctor_to_vec (tree); |