0001-m68k-fix-__mpn_lshift-and-__mpn_rshift-for-non-68020.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 464fd8249e8b791248cab7b0e0cd91757435fa9e Mon Sep 17 00:00:00 2001
  2. From: Andreas Schwab <schwab@linux-m68k.org>
  3. Date: Thu, 17 Aug 2023 17:15:34 +0200
  4. Subject: [PATCH] m68k: fix __mpn_lshift and __mpn_rshift for non-68020
  5. From revision 03f3d275d0d6 in the gmp repository.
  6. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  7. ---
  8. sysdeps/m68k/m680x0/lshift.S | 4 ++--
  9. sysdeps/m68k/m680x0/rshift.S | 4 ++--
  10. 2 files changed, 4 insertions(+), 4 deletions(-)
  11. diff --git a/sysdeps/m68k/m680x0/lshift.S b/sysdeps/m68k/m680x0/lshift.S
  12. index 2aee10348e..4240738959 100644
  13. --- a/sysdeps/m68k/m680x0/lshift.S
  14. +++ b/sysdeps/m68k/m680x0/lshift.S
  15. @@ -77,8 +77,8 @@ L(Lnormal:)
  16. #else /* not mc68000 */
  17. movel R(s_size),R(d0)
  18. asll #2,R(d0)
  19. - addl R(s_size),R(s_ptr)
  20. - addl R(s_size),R(res_ptr)
  21. + addl R(d0),R(s_ptr)
  22. + addl R(d0),R(res_ptr)
  23. #endif
  24. movel MEM_PREDEC(s_ptr),R(d2)
  25. movel R(d2),R(d0)
  26. diff --git a/sysdeps/m68k/m680x0/rshift.S b/sysdeps/m68k/m680x0/rshift.S
  27. index d16bca9307..d56a2b4a44 100644
  28. --- a/sysdeps/m68k/m680x0/rshift.S
  29. +++ b/sysdeps/m68k/m680x0/rshift.S
  30. @@ -127,8 +127,8 @@ L(Lspecial:)
  31. #else /* not mc68000 */
  32. movel R(s_size),R(d0)
  33. asll #2,R(d0)
  34. - addl R(s_size),R(s_ptr)
  35. - addl R(s_size),R(res_ptr)
  36. + addl R(d0),R(s_ptr)
  37. + addl R(d0),R(res_ptr)
  38. #endif
  39. clrl R(d0) /* initialize carry */
  40. --
  41. 2.39.2