From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31430 invoked by alias); 17 Apr 2012 14:01:08 -0000 Received: (qmail 31409 invoked by uid 22791); 17 Apr 2012 14:01:05 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_SV X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Apr 2012 14:00:18 +0000 From: "marc.glisse at normalesup dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51033] generic vector subscript and shuffle support was not added to C++ Date: Tue, 17 Apr 2012 14:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: enhancement X-Bugzilla-Who: marc.glisse at normalesup dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg01388.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51033 --- Comment #16 from Marc Glisse 2012-04-17 13:57:05 UTC --- (In reply to comment #15) > Are you planning to send it to gcc-patches for approval or are you not happy > with it yet? There is the problem of moving the testcases. What svn diff prints is nonsense, so I guess I should just write the Changelog and let whoever commits do the moves? The following can move to c-c++-common: gcc.dg/vector-2.c gcc.dg/vector-subscript-2.c gcc.dg/vector-3.c gcc.dg/vector-subscript-3.c gcc.dg/vector-init-1.c gcc.dg/vector-4.c gcc.dg/vector-init-2.c gcc.dg/vector-1.c gcc.dg/vector-subscript-1.c with these minor modifications: Index: c-c++-common/vector-subscript-1.c =================================================================== --- c-c++-common/vector-subscript-1.c (revision 186523) +++ c-c++-common/vector-subscript-1.c (working copy) @@ -6,7 +6,7 @@ float vf(vector float a) { - return 0[a]; /* { dg-error "subscripted value is neither array nor pointer nor vector" } */ + return 0[a]; /* { dg-error "subscripted value is neither array nor pointer nor vector|invalid types .* for array subscript" } */ } Index: c-c++-common/vector-3.c =================================================================== --- c-c++-common/vector-3.c (revision 186523) +++ c-c++-common/vector-3.c (working copy) @@ -2,4 +2,7 @@ /* Check that we error out when using vector_size on the bool type. */ +#ifdef __cplusplus +#define _Bool bool +#endif __attribute__((vector_size(16) )) _Bool a; /* { dg-error "" } */ And now I should actually bootstrap and run the testsuite ;-)