This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: front end changes for altivec
On Tue, 2001-11-27 at 19:03, Richard Henderson wrote:
> On Tue, Nov 27, 2001 at 06:59:35PM -0600, Aldy Hernandez wrote:
> > why can't you have sizeof((vector int))?
>
> Oh, you mean vector_width == sizeof(vector int) / sizeof(int)?
> Um, I guess that works.
right
> But what do you do with
>
> vector int x = (vector int){ 1, 2, 3, 4 };
>
> when a vector is only two elements wide?
that should trigger a syntax error. and vector constants should only be
used in initializers.
>
>
> r~
--
Aldy Hernandez E-mail: aldyh@redhat.com
Professional Gypsy
Red Hat, Inc.