m68k: fix __mpn_lshift and __mpn_rshift for non-68020

From revision 03f3d275d0d6 in the gmp repository.
This commit is contained in:
Andreas Schwab 2023-08-17 17:15:34 +02:00
parent 369f373057
commit 464fd8249e
2 changed files with 4 additions and 4 deletions

View 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)

View 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 */