4 * Optimized RAID-5 checksumming functions for IA-64.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * You should have received a copy of the GNU General Public License
12 * (for example /usr/src/linux/COPYING); if not, write to the Free
13 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 #include <asm/asmmacro.h>
17 #include <asm/export.h>
19 GLOBAL_ENTRY(xor_ia64_2)
23 alloc r31 = ar.pfs, 3, 0, 13, 16
41 .rotr s1[6+1], s2[6+1], d[2]
44 (p[0]) ld8.nta s1[0] = [r16], 8
45 (p[0]) ld8.nta s2[0] = [r17], 8
46 (p[6]) xor d[0] = s1[6], s2[6]
47 (p[6+1])st8.nta [r8] = d[1], 8
55 EXPORT_SYMBOL(xor_ia64_2)
57 GLOBAL_ENTRY(xor_ia64_3)
61 alloc r31 = ar.pfs, 4, 0, 20, 24
80 .rotr s1[6+1], s2[6+1], s3[6+1], d[2]
83 (p[0]) ld8.nta s1[0] = [r16], 8
84 (p[0]) ld8.nta s2[0] = [r17], 8
85 (p[6]) xor d[0] = s1[6], s2[6]
87 (p[0]) ld8.nta s3[0] = [r18], 8
88 (p[6+1])st8.nta [r8] = d[1], 8
89 (p[6]) xor d[0] = d[0], s3[6]
96 EXPORT_SYMBOL(xor_ia64_3)
98 GLOBAL_ENTRY(xor_ia64_4)
102 alloc r31 = ar.pfs, 5, 0, 27, 32
122 .rotr s1[6+1], s2[6+1], s3[6+1], s4[6+1], d[2]
125 (p[0]) ld8.nta s1[0] = [r16], 8
126 (p[0]) ld8.nta s2[0] = [r17], 8
127 (p[6]) xor d[0] = s1[6], s2[6]
128 (p[0]) ld8.nta s3[0] = [r18], 8
129 (p[0]) ld8.nta s4[0] = [r19], 8
130 (p[6]) xor r20 = s3[6], s4[6]
132 (p[6+1])st8.nta [r8] = d[1], 8
133 (p[6]) xor d[0] = d[0], r20
140 EXPORT_SYMBOL(xor_ia64_4)
142 GLOBAL_ENTRY(xor_ia64_5)
146 alloc r31 = ar.pfs, 6, 0, 34, 40
167 .rotr s1[6+1], s2[6+1], s3[6+1], s4[6+1], s5[6+1], d[2]
170 (p[0]) ld8.nta s1[0] = [r16], 8
171 (p[0]) ld8.nta s2[0] = [r17], 8
172 (p[6]) xor d[0] = s1[6], s2[6]
173 (p[0]) ld8.nta s3[0] = [r18], 8
174 (p[0]) ld8.nta s4[0] = [r19], 8
175 (p[6]) xor r21 = s3[6], s4[6]
177 (p[0]) ld8.nta s5[0] = [r20], 8
178 (p[6+1])st8.nta [r8] = d[1], 8
179 (p[6]) xor d[0] = d[0], r21
181 (p[6]) xor d[0] = d[0], s5[6]
189 EXPORT_SYMBOL(xor_ia64_5)