2002-11-01 Jakub Jelinek <jakub@redhat.com>
authorroland <roland>
Fri, 1 Nov 2002 20:46:48 +0000 (20:46 +0000)
committerroland <roland>
Fri, 1 Nov 2002 20:46:48 +0000 (20:46 +0000)
* sysdeps/ia64/strncpy.S: Fix recovery code.

sysdeps/ia64/strncpy.S

index 202741f..a285f90 100644 (file)
@@ -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)