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: Baby's First AldyVec/AltiVec patch


On Dec 27, 2003, Jason Merrill <jason@redhat.com> wrote:

> On 26 Dec 2003 22:04:26 -0200, Alexandre Oliva <aoliva@redhat.com> wrote:
>>> Your proposal is trying to give a well-defined syntax with a
>>> standard semantic, a different semantic than what it means and what
>>> people would expect it to mean. 
>> 
>> Except (I think) it would be semantically ill-formed, even though it
>> would parse correctly.

> Nope.  It's well-formed, just useless.

Only if you think of the vector type as a type that can be converted
to/from scalar integer types.  If you thought of it as a POD aggregate
type, the conversion would be ill-formed.  Sure you want to do
arithmetics with it as with scalar types, but that's just another
extension (or, in C++, operator overloading).

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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