Fix Niagara-4 memcpy bug on 32-bit.

* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
	upper 32-bits of the length value in %o2 since we use branch-on-register
	tests which consider the entire 64-bit register.
This commit is contained in:
David S. Miller 2012-10-06 18:36:40 -07:00
parent 5d41d91a3e
commit f1ecb7ef7f
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2012-10-06 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
upper 32-bits of the length value in %o2 since we use branch-on-register
tests which consider the entire 64-bit register.
2012-10-06 H.J. Lu <hongjiu.lu@intel.com>
* string/test-strstr.c (check2): Add a test for page boundary.

View File

@ -64,6 +64,9 @@ ENTRY(__memcpy_niagara4)
100: /* %o0=dst, %o1=src, %o2=len */
mov %o0, %o3
101:
#ifndef __arch64__
srl %o2, 0, %o2
#endif
brz,pn %o2, .Lexit
cmp %o2, 3
ble,pn %icc, .Ltiny