From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13563 invoked by alias); 27 May 2013 13:03:09 -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 13488 invoked by uid 48); 27 May 2013 13:03:03 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/57343] [4.8 Regression] wrong code on x86_64-linux at -Os and above Date: Mon, 27 May 2013 13:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work target_milestone short_desc cf_known_to_fail 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/msg01894.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57343 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |4.9.0 Target Milestone|4.8.1 |4.8.2 Summary|[4.8/4.9 Regression] wrong |[4.8 Regression] wrong code |code on x86_64-linux at -Os |on x86_64-linux at -Os and |and above |above Known to fail| |4.8.1 --- Comment #10 from Richard Biener --- Author: rguenth Date: Mon May 27 13:02:24 2013 New Revision: 199357 URL: http://gcc.gnu.org/viewcvs?rev=199357&root=gcc&view=rev Log: 2013-05-27 Richard Biener PR tree-optimization/57343 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED. (number_of_iterations_cond): Do not build the folded tree. * gcc.dg/torture/pr57343.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr57343.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-loop-niter.c