From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26514 invoked by alias); 25 Jun 2012 22:21:51 -0000 Received: (qmail 26503 invoked by uid 22791); 25 Jun 2012 22:21:50 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 Jun 2012 22:21:31 +0000 From: "wschmidt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/53774] New: Reassociator generates non-canonical addition Date: Mon, 25 Jun 2012 22:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wschmidt 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-Changed-Fields: Message-ID: 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-06/txt/msg01690.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53774 Bug #: 53774 Summary: Reassociator generates non-canonical addition Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: wschmidt@gcc.gnu.org CC: bergner@vnet.ibm.com, rguenther@suse.de There is one test in the regression testsuite for which the reassociator generates a GIMPLE addition that is not canonical. Specifically, it generates an add where rhs1 is a constant and rhs2 is an SSA name. The test is: gcc.c-torture/compiler/pr41634.c The generated GIMPLE includes: D.1393_7 = 4294967293 + fp_6(D); Probably best just to run this test from the testsuite to reproduce, but here is the command I used. /home/wschmidt/gcc/build/gcc-mainline-slsrpt1a/gcc/xgcc -B/home/wschmidt/gcc/build/gcc-mainline-slsrpt1a/gcc/ -fno-diagnostics-show-caret -O0 -w -c -m32 -o pr41634.o /home/wschmidt/gcc/gcc-mainline-slsrpt1a/gcc/testsuite/gcc.c-torture/compile/pr41634.c