From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 19148 invoked from network); 27 Dec 1999 01:02:43 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 27 Dec 1999 01:02:43 -0000 Received: from quantum.ece.ucsb.edu (root@quantum.ece.ucsb.edu [128.111.185.95]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id UAA17166 for ; Sun, 26 Dec 1999 20:02:42 -0500 Received: from cluster1 (feynman.ece.ucsb.edu [128.111.29.124]) by quantum.ece.ucsb.edu (8.8.6 (PHNE_17135)/8.8.6) with SMTP id RAA09581 for ; Sun, 26 Dec 1999 17:02:40 -0800 (PST) From: Michael Werner Reply-To: werner@quantum.ece.ucsb.edu Organization: ECE-UCSB To: axp-list@redhat.com Subject: arch/alpha/lib/memcpy.c v2.3.34 Date: Sun, 26 Dec 1999 16:42:45 -0800 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <99122617023900.06909@cluster1> Content-Transfer-Encoding: 8bit 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.