mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user