From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30527 invoked from network); 22 Mar 1999 14:50:51 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 22 Mar 1999 14:50:51 -0000 Received: from ares.cs.Virginia.EDU (ftp.cs.Virginia.EDU [128.143.137.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id JAA05821 for ; Mon, 22 Mar 1999 09:38:30 -0500 Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.18]) by ares.cs.Virginia.EDU (8.9.2/8.9.2/UVACS-1999030200) with ESMTP id JAA25943 for ; Mon, 22 Mar 1999 09:38:27 -0500 (EST) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.8.5/8.8.5) id JAA07994 for axp-list@redhat.com; Mon, 22 Mar 1999 09:38:25 -0500 (EST) Message-Id: <199903221438.JAA07994@adder.cs.Virginia.EDU> Subject: Re: XP1000 and Linux To: axp-list@redhat.com Date: Mon, 22 Mar 1999 09:38:25 -0500 (EST) In-Reply-To: <36F6024B.1C25B31C@paralleldata.com> from "Wes Bauske" at Mar 22, 99 02:41:47 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > Looks like it uses conditionals to decide when to do wh64. It has to. You don't know the alignment of the variables at the start of the loop, so you'd have to test and have a leader and trailer instead of just a trailer. But if you were writing multiple variables, undoubtedly they'd have different alignment. So the easiest trick is to use 1 conditional for each wh64. I don't know if the 21264's branch prediction is good enough to avoid a bubble for a branch which is taken 1/8 of the time, but avoiding extra main memory traffic is a huge win. We could easily figure out a bit of code that has an if() and one asm() statement that allows us to do this by hand in egcs-compiled codes. In order for egcs to generate this automatically, it would have to know that the loop was big enough to make it worthwhile, and also that the array in question was not read-before-written in the loop. -- g