From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28886 invoked by alias); 26 Sep 2012 13:46:58 -0000 Received: (qmail 28601 invoked by uid 48); 26 Sep 2012 13:46:27 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54716] Select best typed instruction for bitwise operations Date: Wed, 26 Sep 2012 13:46: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: normal X-Bugzilla-Who: jakub 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: 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-09/txt/msg02179.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54716 --- Comment #1 from Jakub Jelinek 2012-09-26 13:46:25 UTC --- Created attachment 28282 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28282 gcc48-pr54716.patch Untested patch to optimize this. Unfortunately it will also change generated code for: __m256d i (__m256d x, __m256d y) { return (__m256d) _mm256_or_si256 ((__m256i) x, (__m256i) y); } Not sure if that is an issue or not. If we wanted to emit what the user for whatever reason asked for, the builtin expander could perhaps in those cases copy one of the arguments into a temporary pseudo before expansion.