From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23598 invoked by alias); 12 Sep 2002 12:42:13 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 23574 invoked by uid 61); 12 Sep 2002 12:42:12 -0000 Date: Thu, 12 Sep 2002 05:42:00 -0000 Message-ID: <20020912124212.23573.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, tabasso@tabasoft.it From: nathan@gcc.gnu.org Reply-To: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, tabasso@tabasoft.it, gcc-gnats@gcc.gnu.org Subject: Re: c/7888: wrong code produced by GCC 3.1 X-SW-Source: 2002-09/txt/msg00207.txt.bz2 List-Id: Synopsis: wrong code produced by GCC 3.1 State-Changed-From-To: feedback->closed State-Changed-By: nathan State-Changed-When: Thu Sep 12 05:42:11 2002 State-Changed-Why: With a power pc 3.2 compiler the unoptimized code looks like ... addi 10,31,16 lwz 9,0(10) mr 11,9 lwz 7,32(31) lwz 8,36(31) stw 7,0(11) stw 8,4(11) addi 9,9,8 stw 9,0(10) .. which looks correct for a single *dbplp++ the optimised loop looks like .L13: stw 9,0(3) stw 10,4(3) stwu 9,8(3) stw 10,4(3) stwu 9,8(3) stw 10,4(3) stwu 9,8(3) stw 10,4(3) addi 3,3,8 bdnz .L13 mr 11,3 which again looks correct. If the problem persists, please provide the target triplet, a *complete* code sample, and indicate in the assembly where the error is, if possible. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7888