From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21413 invoked from network); 1 Aug 1999 23:38:46 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 1 Aug 1999 23:38:46 -0000 Received: from piglet.twiddle.net (root@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id TAA24562 for ; Sun, 1 Aug 1999 19:38:46 -0400 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id QAA04865 for axp-list@redhat.com; Sun, 1 Aug 1999 16:38:44 -0700 Date: Sun, 1 Aug 1999 16:38:44 -0700 From: Richard Henderson To: axp-list@redhat.com Subject: Re: int vs. long Message-ID: <19990801163844.A4553@twiddle.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: ; from Christopher T. Lansdown on Fri, Jul 30, 1999 at 02:39:21PM -0400 On Fri, Jul 30, 1999 at 02:39:21PM -0400, Christopher T. Lansdown wrote: > Is there a speed difference between dealing with ints and dealing > with longs on the Alpha? Yes. It ought to be small, but present. Comparisons, for instance, have to be done as longs; most of the time the compiler can figure out that the ldl or addl has produced a proplerly sign-extended value, but sometimes not. > Oh, on another note, how much of a speed hit is a cast from > int (long) to float? Thanks. ev6 is relatively cheap -- one gr->fr move, and then one convert insn. Probably 5 cycles latency max. Pre-ev6, no gr->fr move so have to store+load from memory. Call it 9 cycles? r~