This is the mail archive of the gcc-patches@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 predicates




--On Sunday, February 03, 2002 02:35:30 PM +1100 Aldy Hernandez 
<aldyh@redhat.com> wrote:

>>>>>> "David" == David Edelsohn <dje@watson.ibm.com> writes:
>
>  > 	I guess I'm just being dense.  I don't understand why you need to
>  > explicitly create separate builtin builtin variants for each mode.
>
> No, I think you have a point.

I'm not sanguine about creating builtin functions that do not have
a well-defined type.  From a language point of view, these builtins
should have a type (like "int ()(int, int)").  Otherwise, we're
asking for all kinds of problems.  If the type involves variable
arguments, that's OK -- but then we should expect that the usual
promotion rules apply, so that, for example, you can never get
a float as one of the parameters.

To me, that means that you need a separate builtin for each mode.

-- 
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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