From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25666 invoked by alias); 19 Feb 2013 16:23:24 -0000 Received: (qmail 25447 invoked by uid 48); 19 Feb 2013 16:23:04 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/56363] over aggressive division folding ignores sign conversion Date: Tue, 19 Feb 2013 16:23: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-Keywords: wrong-code 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: 2013-02/txt/msg01941.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56363 --- Comment #5 from Jakub Jelinek 2013-02-19 16:23:03 UTC --- At least from what is described in that PR, it would look like it is just fine to use EXACT_DIV_EXPR, but that we should pass op0 and op1 to the fold_build2_loc call, instead of arg0/arg1.