This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Baby's First AldyVec/AltiVec patch
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Gabriel Dos Reis <gdr at integrable-solutions dot net>, Ziemowit Laski <zlaski at apple dot com>, aldyh at redhat dot com, Matt Austern <austern at apple dot com>, "compiler-group at group dot apple dot com ()" <compiler-group at group dot apple dot com>, mark at codesourcery dot com, gcc-patches at gcc dot gnu dot org, Dale Johannesen <dalej at apple dot com>, Daniel Berlin <dberlin at dberlin dot org>, Zack Weinberg <zack at codesourcery dot com>
- Date: 27 Dec 2003 12:21:28 -0200
- Subject: Re: Baby's First AldyVec/AltiVec patch
- Organization: GCC Team, Red Hat
- References: <E3468C39-3271-11D8-976A-000393673036@apple.com><87zndouvn9.fsf@egil.codesourcery.com><B83F3B1B-32AF-11D8-B83F-00039390FFE2@apple.com><1072147229.7974.17.camel@doubledemon.codesourcery.com><18BAC6C3-3575-11D8-BBD2-000A95D7CD40@apple.com><02D8A418-3576-11D8-AD75-000393B2ABA2@apple.com><1072204448.7976.68.camel@doubledemon.codesourcery.com><8752C41B-3596-11D8-BC51-000393673036@apple.com><m3brpz16dm.fsf@uniton.integrable-solutions.net><D21A8FC7-359E-11D8-BC51-000393673036@apple.com><m365g7159e.fsf@uniton.integrable-solutions.net><or3cb7qg6t.fsf@livre.redhat.lsd.ic.unicamp.br><xypvfo22a2o.fsf@miranda.boston.redhat.com>
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