From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2521 invoked by alias); 28 Nov 2001 01:50:37 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 2485 invoked from network); 28 Nov 2001 01:50:35 -0000 Received: from unknown (HELO dot.cygnus.com) (205.180.230.224) by hostedprojects.ges.redhat.com with SMTP; 28 Nov 2001 01:50:35 -0000 Received: (from rth@localhost) by dot.cygnus.com (8.11.2/8.11.2) id fAS1o1Z30397; Tue, 27 Nov 2001 17:50:01 -0800 X-Authentication-Warning: dot.cygnus.com: rth set sender to rth@redhat.com using -f Date: Tue, 20 Nov 2001 02:46:00 -0000 From: Richard Henderson To: Aldy Hernandez Cc: "Joseph S. Myers" , gcc@gcc.gnu.org Subject: Re: front end changes for altivec Message-ID: <20011127175001.B30389@redhat.com> Mail-Followup-To: Richard Henderson , Aldy Hernandez , "Joseph S. Myers" , gcc@gcc.gnu.org References: <1006874643.5176.8.camel@litecycle.cc.andrews.edu> <20011127132756.A30114@redhat.com> <1006898082.5178.41.camel@litecycle.cc.andrews.edu> <20011127140031.E30114@redhat.com> <1006908775.5178.45.camel@litecycle.cc.andrews.edu> <20011127170133.A30341@redhat.com> <1006910794.5178.61.camel@litecycle.cc.andrews.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1006910794.5178.61.camel@litecycle.cc.andrews.edu>; from aldyh@redhat.com on Tue, Nov 27, 2001 at 07:26:34PM -0600 X-SW-Source: 2001-11/txt/msg00945.txt.bz2 On Tue, Nov 27, 2001 at 07:26:34PM -0600, Aldy Hernandez wrote: > > Modulo the varying size of "short", > > > > #define __vector __attribute__((__vector_size__(16))) > > the thing is that there are builtins that expect V4SI, or V4SF, or > V16QI, etc. i guess i can have all vectors be V4SI (or vector_size(16)) > and cast them (which does nothing, but quiets the parser). Examine the type that __vector is modifying ("short" for this example) and you get HImode. Divide vector_size(16) by sizeof(HImode) to yield 8. Put it all together and to get V8HImode. Voila. r~ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: Aldy Hernandez Cc: "Joseph S. Myers" , gcc@gcc.gnu.org Subject: Re: front end changes for altivec Date: Tue, 27 Nov 2001 17:50:00 -0000 Message-ID: <20011127175001.B30389@redhat.com> References: <1006874643.5176.8.camel@litecycle.cc.andrews.edu> <20011127132756.A30114@redhat.com> <1006898082.5178.41.camel@litecycle.cc.andrews.edu> <20011127140031.E30114@redhat.com> <1006908775.5178.45.camel@litecycle.cc.andrews.edu> <20011127170133.A30341@redhat.com> <1006910794.5178.61.camel@litecycle.cc.andrews.edu> X-SW-Source: 2001-11/msg01446.html Message-ID: <20011127175000.TWnxYrL5s4p6KbbShuDr6-rOWkldGFYfPYyT_OizwLo@z> On Tue, Nov 27, 2001 at 07:26:34PM -0600, Aldy Hernandez wrote: > > Modulo the varying size of "short", > > > > #define __vector __attribute__((__vector_size__(16))) > > the thing is that there are builtins that expect V4SI, or V4SF, or > V16QI, etc. i guess i can have all vectors be V4SI (or vector_size(16)) > and cast them (which does nothing, but quiets the parser). Examine the type that __vector is modifying ("short" for this example) and you get HImode. Divide vector_size(16) by sizeof(HImode) to yield 8. Put it all together and to get V8HImode. Voila. r~