gmp-4.2 on G5 OSX 10.3.9

Torbjorn Granlund tege at swox.com
Wed May 3 22:45:37 CEST 2006


dominiq at lps.ens.fr (Dominique Dhumieres) writes:

  without ABI=32, t-hamdist failed with a segmentation fault:

  [snip]
  
This is caused by a bug in GMP, isolated by Kate Minola.  This
patch should help:

diff -p -2 -r1.2 popcount.asm
*** mpn/powerpc64/vmx/popcount.asm        22 Mar 2006 13:17:00 -0000
--- mpn/powerpc64/vmx/popcount.asm        2 May 2006 22:22:33 -0000
*************** PROLOGUE(mpn_popcount)
*** 82,85 ****
--- 82,88 ----
        mtspr   256, r0
  
+ ifdef(`HAVE_ABI_mode32',
+ `     rldicl  n, n, 0, 32')           C zero extend n
+ 
  C Load various constants into vector registers
        LEA(    r11, cnsts)
  

-- 
Torbjörn


More information about the gmp-bugs mailing list