From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22825 invoked by alias); 4 Feb 2011 22:48:04 -0000 Received: (qmail 22816 invoked by uid 22791); 4 Feb 2011 22:48:03 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_XD,TW_XS 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; Fri, 04 Feb 2011 22:48:00 +0000 From: "pthaugen at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/47614] cpu2000 benchmark 301.apsi fails with revision 169782 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pthaugen 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: CC 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 Date: Fri, 04 Feb 2011 22:48:00 -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 X-SW-Source: 2011-02/txt/msg00699.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47614 Pat Haugen changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bergner at gcc dot gnu.org, | |meissner at gcc dot | |gnu.org, wschmidt at gcc | |dot gnu.org --- Comment #1 from Pat Haugen 2011-02-04 22:47:57 UTC --- Premature bug creation before... 301.apsi started failing on PowerPC with r169782. Attatched testcase was compiled with 'gfortran -S -m64 -mcpu=power7 -O3 -funroll-loops -ffast-math'. Following is good/bad snippet of the assembler. r169781: xsmaxdp 0,0,11 ble 7,.L2 mr 10,5 addi 0,7,-2 lfdu 5,8(10) rlwinm 8,0,0,29,31 li 9,1 xscmpudp 0,0,5 ble 0,.L2 r169782: xsmaxdp 0,0,11 ble 7,.L2 xscmpudp 0,0,11 addi 0,7,-2 mr 10,5 rlwinm 8,0,0,29,31 li 9,1 ble 0,.L2 Note in the new version that the lfdu instruction is gone. This doesn't affect the compare since the memory value in f11 is still valid, the problem is that elminating the lfdu instruction elminates the increment of r10 which causes problems later on when it is used in subsequent loads (and is pointing at the wrong location).