From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9454 invoked by alias); 6 May 2009 06:11:10 -0000 Received: (qmail 9445 invoked by uid 22791); 6 May 2009 06:11:09 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_12,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-gx0-f158.google.com (HELO mail-gx0-f158.google.com) (209.85.217.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 May 2009 06:11:05 +0000 Received: by gxk2 with SMTP id 2so10348192gxk.8 for ; Tue, 05 May 2009 23:11:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.133.9 with SMTP id k9mr315218ybn.51.1241590262842; Tue, 05 May 2009 23:11:02 -0700 (PDT) In-Reply-To: <200905060604.n4664Skm024765@greed.delorie.com> References: <200905060604.n4664Skm024765@greed.delorie.com> Date: Wed, 06 May 2009 06:11:00 -0000 Message-ID: Subject: Re: opaque vector types? From: Andrew Pinski To: DJ Delorie Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-05/txt/msg00102.txt.bz2 On Tue, May 5, 2009 at 11:04 PM, DJ Delorie wrote: > I'm working on a coprocessor which has separate SIMD arithmetic > operations for each data size, but only one SIMD logical operation for > all sizes. =C2=A0I.e. there's four ADD insns (V8QI, V4HI, etc) , but only > one AND insn. =C2=A0I'd like to use an opaque vector type for the AND > builtin, to avoid warnings. You could do what the rs6000 back-end does for the altivec builtins and resolve them while the parser is run (the SPU back-end does the same thing too). Yes there are opaque vector types, you just use build_opaque_vector_type instead of build_vector_type. -- Pinski