about summary refs log tree commit diff
path: root/sysdeps/ia64/strncpy.S
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-01 20:46:53 +0000
committerRoland McGrath <roland@gnu.org>2002-11-01 20:46:53 +0000
commitc88fccbef1a9046476ba7882c6240e372d52cd03 (patch)
treef591b70b8ea5436fc417cd652831e525a2f7498c /sysdeps/ia64/strncpy.S
parentc877418f2e806a5d2a07c036bb4ac192a53ccdbf (diff)
downloadglibc-c88fccbef1a9046476ba7882c6240e372d52cd03.tar.gz
glibc-c88fccbef1a9046476ba7882c6240e372d52cd03.tar.xz
glibc-c88fccbef1a9046476ba7882c6240e372d52cd03.zip
* sysdeps/ia64/strncpy.S: Fix recovery code.
Diffstat (limited to 'sysdeps/ia64/strncpy.S')
-rw-r--r--sysdeps/ia64/strncpy.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/ia64/strncpy.S b/sysdeps/ia64/strncpy.S
index 202741f980..a285f90bfc 100644
--- a/sysdeps/ia64/strncpy.S
+++ b/sysdeps/ia64/strncpy.S
@@ -217,11 +217,11 @@ ENTRY(strncpy)
 (p5)	mov	r[0] = r0
 	br.cond.sptk .back2
 .recovery3:
-	add	tmp = -MEMLAT * 8, src ;;
+	add	tmp = -(MEMLAT + 1) * 8, src ;;
 	ld8	r[MEMLAT] = [tmp]
 	br.cond.sptk .back3
 .recovery4:
-	add	tmp = -(MEMLAT - 1) * 8, src ;;
+	add	tmp = -MEMLAT * 8, src ;;
 	ld8	r[MEMLAT - 1] = [tmp]
 	br.cond.sptk .back4
 END(strncpy)