From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 1 Aug 1996 09:32:45 -0500 (CDT) From: Richard Henderson Subject: Re: scheduled memcpy In-Reply-To: Linus wrote: > If you're _really_ serious about this (very nice), you should probably unroll > the inner loop a bit (that can help hide load latencies), and you can do > stuff like pre-fetch with a "ldq_u $31,64($srcreg)" etc. I've since unrolled the inner loops once, but it seemed to make very little difference in the timings. I'm not sure I understand the cause of this. I wouldn't have thought that the memory bug was completely saturated just with the single loop. Incidentally, "ldq_u $31, X(R)" is the universal nop -- it doesn't even get slotted. You have to use a real destination register. I've been trying to figure out how fetch and fetch_m should be used; whether it helps or hurts to do a fetch on the source as the first instruction and letting that work while I figure out if we're aligned or whatnot. The problem here is fetch talks about 512 byte aligned blocks. I'll go back and look at that code with your other suggestions in mind. r~ -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null