From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4178 invoked by alias); 7 May 2002 22:22:53 -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 4171 invoked from network); 7 May 2002 22:22:51 -0000 Received: from unknown (HELO potter.sfbay.redhat.com) (205.180.83.107) by sources.redhat.com with SMTP; 7 May 2002 22:22:51 -0000 Received: from dot.sfbay.redhat.com (dot.sfbay.redhat.com [172.16.24.7]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g47MLjv12152; Tue, 7 May 2002 15:21:45 -0700 Received: (from rth@localhost) by dot.sfbay.redhat.com (8.11.6/8.11.6) id g47MMnd14417; Tue, 7 May 2002 15:22:49 -0700 X-Authentication-Warning: dot.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Tue, 07 May 2002 15:23:00 -0000 From: Richard Henderson To: Johan Rydberg Cc: Andreas Schwab , Robert Dewar , jh@suse.cz, gcc@gcc.gnu.org Subject: Re: i386 and asm jumping Message-ID: <20020507152249.A14407@redhat.com> Mail-Followup-To: Richard Henderson , Johan Rydberg , Andreas Schwab , Robert Dewar , jh@suse.cz, gcc@gcc.gnu.org References: <20020507124802.D25E0F28F3@nile.gnat.com> <20020507193239.G25172@cockmaster.bredbandsbolaget.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020507193239.G25172@cockmaster.bredbandsbolaget.se>; from jrydberg@rtmk.org on Tue, May 07, 2002 at 07:32:39PM +0200 X-SW-Source: 2002-05/txt/msg00523.txt.bz2 On Tue, May 07, 2002 at 07:32:39PM +0200, Johan Rydberg wrote: > The code above will generate; load cnt into register, > decrement register, store register and jump to HANDLER > if zero flag is set. I would like to replace this with > the following assembler code: > > decl cnt > jz HANDLER > jmp NEXT > > Speed is everything :) I think you'd be better off fixing whatever in the compiler that is preventing this rather than playing with funny asm statements. r~