From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17617 invoked by alias); 8 Nov 2012 14:30:06 -0000 Received: (qmail 17391 invoked by uid 48); 8 Nov 2012 14:29:38 -0000 From: "dwmw2 at infradead dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/55177] missed optimizations with __builtin_bswap Date: Thu, 08 Nov 2012 14:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: dwmw2 at infradead dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou 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-11/txt/msg00719.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55177 --- Comment #7 from David Woodhouse 2012-11-08 14:29:37 UTC --- Linux kernel patch to use the builtins at http://marc.info/?l=linux-arch&m=135212414925921&w=2 I think I have the GCC version checks right there, for the availability of the builtins? That is, __builtin_bswap32() and __builtin_bswap64() since GCC 4.4, and __builtin_bswap16() since GCC 4.6 on PowerPC or GCC 4.9 on other platforms?