This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: altivec amusement


[let's ask joseph about this one]

found the problem.

the moto specs are so vague... they're not helpful.  this
is a case of "eeech, you may be right, i may be right".


[snip]
	vector unsigned char high_products[256];
[snip]
	low  =  vec_ldl((int) *(inp++),high_products);

replace the high_products in the call to vec_ldl with:

	(vector unsigned char *)high_products

vec_ldl is expecting a "vector unsigned char *" in the second
argument, not a "vector unsigned char []".

joseph, it seems __builtin_types_equal differentiates between
	int foo[]
and
	int *foo

so what brad is trying to do won't work.

is __builtin_types_equal doing the right thing?

--
Aldy Hernandez                                E-mail: aldyh@redhat.com
Professional Gypsy Lost in Australia
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]