From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24401 invoked by alias); 27 Mar 2012 20:58:03 -0000 Received: (qmail 24392 invoked by uid 22791); 27 Mar 2012 20:58:02 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_AV 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, 27 Mar 2012 20:57:48 +0000 From: "marc.glisse at normalesup dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/52607] v4df __builtin_shuffle with {0,2,1,3} or {1,3,0,2} Date: Tue, 27 Mar 2012 21:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: marc.glisse at normalesup dot org X-Bugzilla-Status: UNCONFIRMED 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-03/txt/msg02375.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52607 --- Comment #22 from Marc Glisse 2012-03-27 20:57:16 UTC --- (In reply to comment #20) > Lastly for each routine it is desirable to think whether it might be useful for > other vector modes (likely 32-byte only) for TARGET_AVX2. I am not very familiar with the integer versions, so I tried: #include __v32qi f(__v32qi x){ __v32qi m={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}; return __builtin_shuffle(x,m); } $ gcc r.c -S -O1 -mavx && cat r.s r.c: In function 'f': r.c:2:9: error: invalid position or size operand to BIT_FIELD_REF BIT_FIELD_REF r.c:2:9: note: in statement D.5992_24 = BIT_FIELD_REF ; r.c:2:9: error: invalid position or size operand to BIT_FIELD_REF BIT_FIELD_REF r.c:2:9: note: in statement D.5993_25 = BIT_FIELD_REF ; [...] r.c:2:9: internal compiler error: verify_gimple failed (with -mavx2 it works fine)