From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5380 invoked by alias); 13 Jun 2012 15:15:13 -0000 Received: (qmail 5361 invoked by uid 22791); 13 Jun 2012 15:15:11 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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; Wed, 13 Jun 2012 15:14:58 +0000 From: "ramana at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51033] generic vector subscript and shuffle support was not added to C++ Date: Wed, 13 Jun 2012 15:15: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: ramana at gcc dot gnu.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: CC 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-06/txt/msg00791.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51033 Ramana Radhakrishnan changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ramana at gcc dot gnu.org --- Comment #25 from Ramana Radhakrishnan 2012-06-13 15:14:16 UTC --- (In reply to comment #19) > Created attachment 27217 [details] > shuffle > > With this patch, g++ passes the few __builtin_shuffle tests I tried, and > generates generic code for non-constant indexes and special code for constant > indexes. I don't really know what to do about the testsuite. The tests exercise > the backend a lot, and it probably doesn't make sense to run everything with > both gcc and g++. But we still want to test that g++ accepts the syntax, and > maybe even that it handles constants well. > > Content of the patch: > - move c_build_vec_perm_expr to c-common and condition the maybe_const stuff to > the dialect > - adapt the C RID_BUILTIN_SHUFFLE parser code to the C++ FE (the 2 are > different enough that it isn't easy to share) > - remove the C_ONLY tag from __builtin_shuffle > > As usual, my limited knowledge of the compiler means I may have missed > fundamental things. Are you planning on submitting the shuffle patch as well ?