From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30315 invoked by alias); 7 Feb 2013 15:11:55 -0000 Received: (qmail 30002 invoked by uid 48); 7 Feb 2013 15:11:24 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55022] [4.8 Regression] air.f90 is miscompliled with -m64 -O2 -fgraphite-identity after revision 190619 Date: Thu, 07 Feb 2013 15:11: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 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/msg00668.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55022 --- Comment #12 from Dominique d'Humieres 2013-02-07 15:11:23 UTC --- If I replace the loop DO i = Spx , Epx vn1 = U(i,Apy)*NX1(i) + V(i,Apy)*NY1(i) P(i,Apy) = P(i,Apy)/DEXP(GMA*vn1/AS1(i)) U(i,Apy) = 0.0 V(i,Apy) = 0.0 T(i,Apy) = TWX_0 RHO(i,Apy) = P(i,Apy)*R_0 AS1(i) = A_0 E(i,Apy) = E_0 U1(i,Apy) = RHO(i,Apy) U2(i,Apy) = 0.0 U3(i,Apy) = 0.0 U4(i,Apy) = RHO(i,Apy)*E_0 ENDDO with DO i = Spx , Epx vn1 = GMA*(U(i,Apy)*NX1(i) + V(i,Apy)*NY1(i))/AS1(i) P(i,Apy) = P(i,Apy)/DEXP(vn1) RHO(i,Apy) = P(i,Apy)*R_0 AS1(i) = A_0 E(i,Apy) = E_0 U1(i,Apy) = RHO(i,Apy) U4(i,Apy) = RHO(i,Apy)*E_0 ENDDO U(Spx:Epx,Apy) = 0.0 V(Spx:Epx,Apy) = 0.0 T(Spx:Epx,Apy) = TWX_0 U2(Spx:Epx,Apy) = 0.0 U3(Spx:Epx,Apy) = 0.0 Then the test does not abort with NaNs, but the result seems wrong: 1729 0.40924060378447885 1737 0.41934356330600248 compared to 1729 0.40411964185599653 1737 0.41528583240265665