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] Altivec ABI as default for powerpc64 linux


> 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>


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