gmp-4.1.3-rc1

David Newman david.newman at jesus.ox.ac.uk
Fri Apr 23 20:11:04 CEST 2004


I've had a few problems compiling with -O3, are these known? It's more 
likely to be a problem with gcc than gmp but it might be of some use.

athlon-pc-linux-gnu (Athlon XP 2600) running gcc 3.3.3 and configured 
with --enable-mpfr CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer" :: 
all tests passed.

k62-pc-linux-gnu (K6-2 400) running gcc 3.3.3 and configured with 
--enable-mpfr CFLAGS="-O3 -march=k6-2 -fomit-frame-pointer" :: failed on 
"t-modlinv" and didn't complete the rest of the tests.
However, all tests passed after changing "-O3" to "-O2".

pentium-pc-linux-gnu (P200) running gcc 2.95 and configured with 
--enable-mpfr CFLAGS="-O3 -march=pentium -fomit-frame-pointer" :: failed 
as follows:

ERROR: mpz_add or mpz_sub incorrect in test 729
op1 = 
1FFFFFE00003E0000007FFF000000000001FFFFFC0000000000038003FF0FFFFE000FFFFE0007FFFFFFFFFFFE03FFE
op2 = 
1FFF007FE3FFFC000000007FFC0003FFF00000001FFFF0003FFFF000000003FFFFFFFB0007C00007FE007FFFFFFFFFFFFF000FFFFFFFFFFFFFFFFFFFFC07FC00000003FFF000FFFE063FFFFE01E00
FAIL: t-addsub

...

mpz_congruent_2exp_p wrong
    expected 1 got 0
    a=-79228162496394124640881999872
    c=17870212952661950464
  a-c=-79228162514264337593543950336
  2^d=45671926166590716193865151022383844364247891968
    d=155
    a=0x-FFFFFFFF0800400000000000
    c=0xF7FFC00000000000
  a-c=0x-1000000000000000000000000
  2^d=0x800000000000000000000000000000000000000
    d=0x9B
FAIL: t-cong_2exp

Again, all tests passed after changing "-O3" to "-O2".

David Newman






More information about the gmp-devel mailing list