aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S b/sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S
index 7bb05b9818..3da98a87ab 100644
--- a/sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S
+++ b/sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S
@@ -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