]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
m68k: fix __mpn_lshift and __mpn_rshift for non-68020
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 17 Aug 2023 15:15:34 +0000 (17:15 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 17 Aug 2023 19:56:14 +0000 (21:56 +0200)
From revision 03f3d275d0d6 in the gmp repository.

sysdeps/m68k/m680x0/lshift.S
sysdeps/m68k/m680x0/rshift.S

index 2aee10348e1ab71c6175703ee901849caa3c57ea..4240738959c5da377208b6ef1d603e1f6ed85a68 100644 (file)
@@ -77,8 +77,8 @@ L(Lnormal:)
 #else /* not mc68000 */
        movel   R(s_size),R(d0)
        asll    #2,R(d0)
-       addl    R(s_size),R(s_ptr)
-       addl    R(s_size),R(res_ptr)
+       addl    R(d0),R(s_ptr)
+       addl    R(d0),R(res_ptr)
 #endif
        movel   MEM_PREDEC(s_ptr),R(d2)
        movel   R(d2),R(d0)
index d16bca9307d7467dab6ac97c86090297b90c9ae4..d56a2b4a4430ef2f8544f6f1d1bfc954c005d243 100644 (file)
@@ -127,8 +127,8 @@ L(Lspecial:)
 #else /* not mc68000 */
        movel   R(s_size),R(d0)
        asll    #2,R(d0)
-       addl    R(s_size),R(s_ptr)
-       addl    R(s_size),R(res_ptr)
+       addl    R(d0),R(s_ptr)
+       addl    R(d0),R(res_ptr)
 #endif
 
        clrl    R(d0)                   /* initialize carry */