This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Altivec ABI as default for powerpc64 linux
- From: Geoff Keating <geoffk at desire dot geoffk dot org>
- To: aldyh at redhat dot com
- Cc: segher at kernel dot crashing dot org, HPENNER at de dot ibm dot com, amodra at bigpond dot net dot au, gcc-patches at gcc dot gnu dot org, dje at watson dot ibm dot com
- Date: Mon, 2 Feb 2004 12:25:57 -0800
- Subject: Re: [Patch] Altivec ABI as default for powerpc64 linux
- References: <OFD9F832EE.F6CB723A-ONC1256E2B.0035AC31-C1256E2B.003789DA@de.ibm.com><jm65ethums.fsf@desire.geoffk.org><02B21AE4-55A0-11D8-AB6A-000A95A4DC02@kernel.crashing.org> <m3ptcxjmmm.fsf@frogsleap.quesejoda.com>
> From: Aldy Hernandez <aldyh@redhat.com>
> Date: 02 Feb 2004 15:40:33 -0400
> For starters, try this with powerpc-linux-gnu and -mabi=altivec (but
> no -maltivec), and fix it :).
>
> typedef int vec __attribute__((mode(V4SI)));
> vec poo, bar;
> extern void funk(vec);
> f(){
> funk(poo);
> }
How can this work? "funk" expects its parameter in v1, but without
-maltivec there are no instructions that can put it there.
--
- Geoffrey Keating <geoffk@geoffk.org>