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: question about AltiVec builtins



On 10 May, 2004, at 18.13, Aldy Hernandez wrote:


On Mon, May 10, 2004 at 05:50:09PM -0700, Fariborz Jahanian wrote:

On May 10, 2004, at 5:28 PM, Janis Johnson wrote:


Do scalar parameters to AltiVec builtins need to have exactly the same
type as the prototype, or promotion rules apply? This test case fails

2nd argument to vec_dst can be any integral type. This is a gcc bug.

Oh Paolo....

Actually, I suspect that the culprit here is altivec.h -- it really shouldn't
feed the 'const int' (literal) parameters to __builtin_types_compatible_p;
the el cheapo overload resolution should occur on the vector arguments alone.


--Zem
--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477


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