From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2991 invoked by alias); 15 Jan 2003 06:31:47 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 2967 invoked from network); 15 Jan 2003 06:31:43 -0000 Received: from unknown (HELO linisoft.localdomain) (24.80.72.10) by 209.249.29.67 with SMTP; 15 Jan 2003 06:31:43 -0000 Received: from linisoft.com (IDENT:reza@linisoft.localdomain [127.0.0.1]) by linisoft.localdomain (8.9.3/8.8.7) with ESMTP id WAA14426; Tue, 14 Jan 2003 22:28:43 -0800 Message-ID: <3E24FF9B.86EA1F59@linisoft.com> Date: Wed, 15 Jan 2003 17:46:00 -0000 From: Reza Roboubi X-Accept-Language: en MIME-Version: 1.0 To: Andrew Pinski CC: gcc-help , "gcc@gcc.gnu.org" , gcc_bugs Subject: Re: optimizations References: <8682D892-2847-11D7-A1D5-000393A6D2F2@physics.uc.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00718.txt.bz2 Andrew Pinski wrote: > > On Tuesday, Jan 14, 2003, at 16:49 US/Pacific, Reza Roboubi wrote: > > > Could you please also tell me if 3.3 and 3.4 remove the extra mov's in > > and out > > of %eax. Ideally, there should be no more than 4 instructions in the > > critical > > loop. > > > > For some reason it is not (even with -fnew-ra), but on PPC there is no > extra load/store. Hmmm. That's interesting. It might be a bug (or overlooked opportunity) on the PC. > > Thanks, > Andrew Pinski > > PS here is the asm for the loop of i[3-6]686, pentium4: > > .L2: > movl -4(%ebp), %eax <== still does the store > cmpl $16, %eax > je .L7 > incl %eax > movl %eax, -4(%ebp) <== and load > jmp .L2 > .L7: > > I do not have access to the machine with 3.{3,4} on PPC right now. I really appreciate your help Andrew. Reza.