HP-UX build problem

Tomas Zahradnicky zahradnicky at kppm.cz
Mon May 29 22:30:46 CEST 2006


Hi Torbjorn,

thanks for this patch, it seems to work. make 
check now properly passes all tests.

All the best,

Tomas

>Tomas Zahradnicky <zahradnicky at kppm.cz> writes:
>
>   find the configure output below. I might be able to get you an
>   account at that machine so you can find out all you need.
>
>Thanks, that isn't really needed.
>
>Ok, so you're usiong the 32-bit ABI.  Then you're almost certianly
>hitting a bug related to 32-bit ABI support in mpn/ia64/popcount.asm.
>(This was added late in the release process, and did not bite in our
>tests.  We used a differnet gcc verson, which might have happended
>extend things for us.)
>
>Please try this patch:
>
>Index: mpn/ia64/popcount.asm
>===================================================================
>RCS file: /home/cvsfiles/gmp42/mpn/ia64/popcount.asm,v
>retrieving revision 1.2
>retrieving revision 1.3
>diff -p -2 -r1.2 -r1.3
>*** mpn/ia64/popcount.asm	20 Mar 2006 14:00:18 -0000	1.2
>--- mpn/ia64/popcount.asm	19 May 2006 22:24:32 -0000	1.3
>*************** dnl  to write mpn_hamdist with the same
>*** 26,29 ****
>--- 26,33 ----
>   include(`../config.m4')
>
>+ define(ABI32,
>+ m4_assert_onearg()
>+ `ifdef(`HAVE_ABI_32',`$1')')
>+
>   C INPUT PARAMETERS
>   C sp = r32
>*************** PROLOGUE(mpn_popcount)
>*** 34,39 ****
>  	.prologue
>  	.save	ar.lc, r2
>!		mov	r2 = ar.lc
>  	.body
>  		and	r22 = 3, r33
>  		shr.u	r23 = r33, 2	;;
>--- 38,47 ----
>  	.prologue
>  	.save	ar.lc, r2
>! ABI32(`		addp4	r32 = 0, r32')	C M  src extend
>!		mov	r2 = ar.lc	C I0
>! ABI32(`		zxt4	r33 = r33')	C I1  size extend
>!		;;
>  	.body
>+
>  		and	r22 = 3, r33
>  		shr.u	r23 = r33, 2	;;
>
>--
>Torbjörn


-- 
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague


More information about the gmp-bugs mailing list