From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31836 invoked from network); 27 Jun 1999 20:36:02 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 27 Jun 1999 20:36:02 -0000 Received: from arctica.sime.com (root@arctica.sime.com [193.228.80.12]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA06537 for ; Sun, 27 Jun 1999 15:39:11 -0400 Received: from sime.com (IDENT:root@stefan.sime.com [194.112.213.115]) by arctica.sime.com (8.9.1/8.9.1) with ESMTP id VAA12181; Sun, 27 Jun 1999 21:38:45 +0200 Received: (from stefan@localhost) by sime.com (8.9.3/8.9.3) id VAA28035; Sun, 27 Jun 1999 21:38:37 +0200 Date: Sun, 27 Jun 1999 21:38:37 +0200 From: Quant-X Alpha Linux Support To: axp-list@redhat.com, Richard Henderson Subject: Re: some odd problems with MD5 on Alpha Message-ID: <19990627213837.A27931@stefan.atko.at> Reply-To: Quant-X Alpha Linux Support References: <19990626072844.19009.rocketmail@web127.yahoomail.com> <19990626223321.C7546@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4us In-Reply-To: <19990626223321.C7546@twiddle.net>; from Richard Henderson on Sat, Jun 26, 1999 at 10:33:21PM -0700 Organization: Quant-X Service & Consulting Ges.m.b.H. X-Operating-System: Linux 2.2.10-stefan (i686) On Sat, Jun 26, 1999 at 10:33:21PM -0700, Richard Henderson wrote: > On Sat, Jun 26, 1999 at 12:28:44AM -0700, designer seven wrote: > > By the way, in time tests, I gained 5-fold increase in > > speed by including -mcpu=ev56 -Wa,-m21164a. What is so > > special about these switches and the MD5 algorithm > > that would make such a drastic performance increase? > > Byte load/store instructions. Hmm yes, especially byte store is much faster. Richard, I'm not saying that I found a bug in old egcs-1.0.3 release; but if I replace "-mcpu=ev5" by "-mcpu=ev56" when compiling nagratv-2.10 I get a "different" runtime behavior. Here the working compile-options and the code that breaks (the outcommented for loop breaks): CFLAGS= -Wall -O6 -funroll-all-loops -fomit-frame-pointer -mcpu=ev5 \ -Wa,-m21164a ---------------------------------------------------------------------- void ClearScreen(DispInfo *d) { int i,s; unsigned char *base; s=2*d->width*d->height; base=d->base; #if 0 for(i=0;i