diff options
author | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-29 15:34:57 +0000 |
---|---|---|
committer | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-29 15:34:57 +0000 |
commit | 99d38b9ec2f11520812d71b9b0c29f5617fdf6cc (patch) | |
tree | 108ab57403c614d7414706d5ee2c44f155666064 /gcc/tree.h | |
parent | 119114cbc5595dc4dcffb358bbb94719eed724ee (diff) | |
download | gcc-99d38b9ec2f11520812d71b9b0c29f5617fdf6cc.tar.gz |
PR middle-end/21969
* tree.h (TYPE_VECTOR_SUBPARTS): Change to shift expression.
(SET_TYPE_VECTOR_SUBPARTS): New.
* tree.c (make_vector_type): Replace TYPE_VECTOR_SUBPARTS with
SET_TYPE_VECTOR_SUBPARTS.
* tree-vect-transform.c (vect_transform_loop): Add cast.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101423 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h index a2e9a86f886..191ba133141 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -1667,7 +1667,12 @@ struct tree_block GTY(()) /* For a VECTOR_TYPE, this is the number of sub-parts of the vector. */ #define TYPE_VECTOR_SUBPARTS(VECTOR_TYPE) \ - (VECTOR_TYPE_CHECK (VECTOR_TYPE)->type.precision) + (((unsigned HOST_WIDE_INT) 1) \ + << VECTOR_TYPE_CHECK (VECTOR_TYPE)->type.precision) + +/* Set precision to n when we have 2^n sub-parts of the vector. */ +#define SET_TYPE_VECTOR_SUBPARTS(VECTOR_TYPE, X) \ + (VECTOR_TYPE_CHECK (VECTOR_TYPE)->type.precision = exact_log2 (X)) /* Indicates that objects of this type must be initialized by calling a function when they are created. */ |