From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19652 invoked by alias); 6 Apr 2005 19:35:05 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 19608 invoked from network); 6 Apr 2005 19:34:55 -0000 Received: from unknown (205.217.158.180) by sourceware.org with QMTP; 6 Apr 2005 19:34:55 -0000 Received: (qmail 2247 invoked by uid 10); 6 Apr 2005 19:34:54 -0000 Received: (qmail 18480 invoked by uid 500); 6 Apr 2005 19:34:44 -0000 Mail-Followup-To: echristo@redhat.com, cgd@broadcom.com, newlib@sources.redhat.com, binutils@sources.redhat.com, pkoning@equallogic.com To: Paul Koning Cc: echristo@redhat.com, cgd@broadcom.com, newlib@sources.redhat.com, binutils@sources.redhat.com Subject: Re: [patch] modify crt0.S for 64-bit address targets References: <1112768205.5493.2.camel@localhost.localdomain> <1112812609.5554.2.camel@localhost.localdomain> <16980.14602.380063.574194@gargle.gargle.HOWL> From: Ian Lance Taylor Date: Wed, 06 Apr 2005 19:35:00 -0000 In-Reply-To: <16980.14602.380063.574194@gargle.gargle.HOWL> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-04/txt/msg00174.txt.bz2 Paul Koning writes: > Eric> Assuredly this is the case. I think the problem might be from > Eric> using the ori instead of addi for the address. ori zero extends > Eric> the constant, addi sign extends. IIRC all addresses should be > Eric> sign extended and as such we should be using addi here yes? I > Eric> seem to recall that we changed this a while back because the > Eric> ori was some small amount faster. > > Faster? On a RISC machine? Seems odd. I think Eric is reversed, actually. There was a MIPS processor which had two add units but only one logical unit. Therefore, on average, on that processor, add was faster. That fact led to this change: Tue Jul 11 11:49:49 1995 Ian Lance Taylor * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu if ISA 3 and addu otherwise, replacing or, since some MIPS chips have multiple add units but only a single logical unit. Ian