From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47411 invoked by alias); 16 Apr 2015 21:58:38 -0000 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 Received: (qmail 47341 invoked by uid 48); 16 Apr 2015 21:58:35 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65787] [5 Regression] Miscompile due to bad vector swap optimization for little endian Date: Thu, 16 Apr 2015 21:58: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-Version: 5.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg01391.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65787 --- Comment #3 from Jakub Jelinek --- Though, len is used just in one place, so perhaps even better just remove the {}s and use if (XVECLEN (op, 0) != 2) return 0; and drop len variable alltogether, it will be more readable that way.