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: patch: Re: rfc: auto-casted vector types


Aldy Hernandez wrote:


#define __ev_addw(a,b) __builtin_spe_evaddw((__v2si) (a), (__v2si) (b))


and we want to be able to assign their value to any other simd type without a cast. The API actually has a definition of __ev_addw() like thus:

__ev64_opaque__ __ev_addw(__ev64_opaque, __ev64_opaque__);
This kind of hints that such builtins should take and return opaque types
then you wouldn't need any casts?

Aldy






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