From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20603 invoked by alias); 30 May 2013 15:33:39 -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 20497 invoked by uid 48); 30 May 2013 15:33:28 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/57073] __builtin_powif (-1.0, k) should be optimized to "1.0 - 2.0 * (K%2)" Date: Thu, 30 May 2013 15:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.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-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: 2013-05/txt/msg02106.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57073 --- Comment #11 from Thomas Koenig --- Created attachment 30228 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30228&action=edit Yet another patch that doesn't work This one fails with program main ^ _24 = i_1 & 1; power_6.f90:4:0: internal compiler error: verify_gimple failed 0x98ca4c verify_gimple_in_cfg(function*) ../../trunk/gcc/tree-cfg.c:4792 0x8c4d87 execute_function_todo ../../trunk/gcc/passes.c:1969 0x8c56e7 execute_todo ../../trunk/gcc/passes.c:2002 We have a few alternatives now: 1. This doesn't get fixed at all 2. This doesn't get fixed by me 3. This gets fixed in the Fortran front end 4. Somebody points out where my patch is going wrong, and helps me understant a bit more of the basics of GIMPLE.