Fix size of generic vectors with -maltivec.

OKed by Geoff Keating.

From-SVN: r86941
This commit is contained in:
Fariborz Jahanian 2004-09-02 00:01:37 +00:00 committed by Fariborz Jahanian
parent c3d0559da5
commit 5ec214fc75
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
* config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
to Altivec vetors.
2004-09-01 Wu Yongwei <adah@sh163.net>
Danny Smith <dannysmith@users.sourceforge.net>

View file

@ -349,7 +349,8 @@ do { \
|| TREE_CODE (STRUCT) == QUAL_UNION_TYPE) \
&& TARGET_ALIGN_NATURAL == 0 \
? rs6000_special_round_type_align (STRUCT, COMPUTED, SPECIFIED) \
: (TARGET_ALTIVEC && TREE_CODE (STRUCT) == VECTOR_TYPE) \
: (TREE_CODE (STRUCT) == VECTOR_TYPE \
&& ALTIVEC_VECTOR_MODE (TYPE_MODE (STRUCT))) \
? MAX (MAX ((COMPUTED), (SPECIFIED)), 128) \
: MAX ((COMPUTED), (SPECIFIED)))