patch-src_arilev0_d 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. $OpenBSD: patch-src_arilev0_d,v 1.1 2010/09/23 13:42:22 joshe Exp $
  2. Rip out a bunch of sparc assembly code which is dubious at best.
  3. --- src/arilev0.d.orig Thu Dec 13 14:27:48 2007
  4. +++ src/arilev0.d Sun Sep 19 15:45:18 2010
  5. @@ -337,12 +337,6 @@
  6. ); \
  7. hi_assignment _hi; lo_assignment _lo; \
  8. })
  9. - #elif defined(SPARC)
  10. - #define mulu32(x,y,hi_assignment,lo_assignment) \
  11. - ({ lo_assignment mulu32_(x,y); # extern in Assembler \
  12. - {var register uint32 _hi __asm__("%g1"); \
  13. - hi_assignment _hi; \
  14. - }})
  15. #elif defined(HAVE_LONG_LONG_INT) && !defined(ARM)
  16. #define mulu32(x,y,hi_assignment,lo_assignment) \
  17. ({ var register uint64 _prod = (uint64)(x) * (uint64)(y); \
  18. @@ -354,11 +348,9 @@
  19. #ifndef mulu32
  20. #define mulu32(x,y,hi_assignment,lo_assignment) \
  21. { lo_assignment mulu32_(x,y); hi_assignment mulu32_high; }
  22. - #if defined(MC680X0) || defined(SPARC) || defined(SPARC64) || defined(ARM) || (defined(I80386) && !defined(BORLAND)) || defined(MIPS) || defined(HPPA) || defined(VAX)
  23. + #if defined(MC680X0) || defined(ARM) || (defined(I80386) && !defined(BORLAND)) || defined(MIPS) || defined(HPPA) || defined(VAX)
  24. # mulu32_ extern in Assembler
  25. - #if defined(SPARC) || defined(SPARC64)
  26. - #define mulu32_high (uint32)(_get_g1()) # Rückgabe im Register %g1
  27. - #elif defined(LISPARIT) && !defined(HPPA) # In arihppa.d ist mulu32_high bereits definiert.
  28. + #if defined(LISPARIT) && !defined(HPPA) # In arihppa.d ist mulu32_high bereits definiert.
  29. global uint32 mulu32_high;
  30. #endif
  31. #else
  32. @@ -468,12 +460,6 @@
  33. ); \
  34. highlow64(_hi,_lo); \
  35. })
  36. - #elif defined(SPARC)
  37. - #define mulu32_64(x,y) \
  38. - ({ var register uint32 _lo = mulu32_(x,y); # extern in Assembler \
  39. - var register uint32 _hi __asm__("%g1"); \
  40. - highlow64(_hi,_lo); \
  41. - })
  42. #endif
  43. #endif
  44. #ifndef mulu32_64
  45. @@ -887,12 +873,6 @@
  46. q_assignment (uint32)__q; \
  47. r_assignment (uint32)__r; \
  48. })
  49. - #elif defined(SPARC) || defined(SPARC64)
  50. - #define divu_6432_3232(xhi,xlo,y,q_assignment,r_assignment) \
  51. - ({ var uint32 _q = divu_6432_3232_(xhi,xlo,y); # extern in Assembler \
  52. - var register uint32 _r __asm__("%g1"); \
  53. - q_assignment _q; r_assignment _r; \
  54. - })
  55. #elif defined(ARM) && 0 # see comment ariarm.d
  56. #define divu_6432_3232(xhi,xlo,y,q_assignment,r_assignment) \
  57. ({ var uint32 _q = divu_6432_3232_(xhi,xlo,y); # extern in Assembler \
  58. @@ -932,11 +912,9 @@
  59. #ifndef divu_6432_3232
  60. #define divu_6432_3232(xhi,xlo,y,q_assignment,r_assignment) \
  61. { q_assignment divu_6432_3232_(xhi,xlo,y); r_assignment divu_32_rest; }
  62. - #if defined(MC680Y0) || defined(SPARC) || defined(SPARC64) || defined(ARM) || (defined(I80386) && !defined(BORLAND)) || defined(HPPA)
  63. + #if defined(MC680Y0) || defined(ARM) || (defined(I80386) && !defined(BORLAND)) || defined(HPPA)
  64. # divu_6432_3232_ extern in Assembler
  65. - #if defined(SPARC) || defined(SPARC64)
  66. - #define divu_32_rest (uint32)(_get_g1()) # Rückgabe im Register %g1
  67. - #elif defined(LISPARIT)
  68. + #if defined(LISPARIT)
  69. global uint32 divu_32_rest;
  70. #endif
  71. #else