AIX/xlc test failures for gmp-5.0.1

Torbjorn Granlund tg at gmplib.org
Thu Nov 25 13:02:12 CET 2010


OK, now I am able to see the same error as you do.  I have not attempted
to track this down, and I will probably not have time do do that in a
while.

If somebody is willing to help, that would be great.

You need an AIX box with IBM's xlc compiler.  Peter tells us that many
xlc versions cause the same sort of behaviour.  The failure to work on
is surely t-toom32, since it involved quite limited code.

I did trac down another 'xlc -q32' problem, though.  Try compiling this
both with and without -O.  It is correctly compiled with -O, but
miscompiled without it.

#include <stdlib.h>
int
main ()
{
  unsigned x, nail;
  x = 3;
  nail = x & ~0xffffffff;
  if (nail != 0)
    abort ();

  exit (0);
}

This compiler bugs is tickled by a 'ABI=long none-ibm-aix6.1' GMP build.

-- 
Torbjörn


More information about the gmp-bugs mailing list