From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18455 invoked by alias); 17 Jan 2013 08:52:43 -0000 Received: (qmail 18429 invoked by uid 48); 17 Jan 2013 08:52:26 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/56015] expand expands p[9] = COMPLEX_EXPR <-IMAGPART_EXPR , REALPART_EXPR >; incorrectly. Date: Thu, 17 Jan 2013 08:52: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: pinskia 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: Keywords Status Last reconfirmed Component Summary Ever Confirmed Known to fail 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-01/txt/msg01598.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56015 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2013-01-17 Component|fortran |middle-end Summary|Option -ffast-math reveals |expand expands p[9] = |i*(a+bi) -> -b-bi, a |COMPLEX_EXPR |complex multiplication bug |<-IMAGPART_EXPR , | |REALPART_EXPR >; | |incorrectly. Ever Confirmed|0 |1 Known to fail|4.4.6, 4.6.3, 4.7.2 |4.3.5, 4.4.5, 4.8.0 --- Comment #1 from Andrew Pinski 2013-01-17 08:52:25 UTC --- Actually it is not the multiplication that goes wrong. In fact the code looks correct before expand. Turning off TER (-fno-tree-ter) will work around this expand issue though.