Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* arch/alpha/lib/memcpy.c v2.3.34
@ 1999-12-27  0:42 Michael Werner
  0 siblings, 0 replies; only message in thread
From: Michael Werner @ 1999-12-27  0:42 UTC (permalink / raw)
  To: axp-list

I was looking at some Alpha code in the arch/alpha/lib directory
and noticed that prefetching was not being utilised. Does anyone have 
a performance testsuite which would exercise this change? 
It would be great if someone could point me to any doc for the __asm__ macro
as I haven't understood the various possibilities to fix the hardcoded register
$17 below.

 static inline void __memcpy_aligned_up (unsigned long d, unsigned long s,
					long n)
{
	unsigned long block=1;
	ALIGN_DEST_TO8_UP(d,s,n);
	__asm__("ldl $31,256($17)");
	n -= 8;
	while (n >= 0) {
		unsigned long tmp;
		__asm__("ldq %0,%1":"=r" (tmp):"m" (*(unsigned long *) s));
		n -= 8;
		s += 8;
		*(unsigned long *) d = tmp;
		block += 1;
		if(block == 32) { block=1; __asm__("ldl $31,256($17)"); }
		d += 8;
	}
	n += 8;
	DO_REST_ALIGNED_UP(d,s,n);
}

Thanks for any help in understanding how to code my 21264.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-12-27  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-27  0:42 arch/alpha/lib/memcpy.c v2.3.34 Michael Werner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox