mpn_rshift / mpn_lshift bug on m68000

Kevin Ryde user42 at zip.com.au
Tue Oct 21 12:27:35 CEST 2003


Patrick Pelissier <Patrick.Pelissier at loria.fr> writes:
>
>    2. The real shift count is modulo 32: the important bits are the 5
>   lowest bits.

I think the docs say 64 actually (but I've not tried it).  Clearly
either is fine.

>           movew    #4,-(sp)    ; Push count (int)

I had an idea the stack is kept longword aligned.  If you think that's
not the case then please post a program / compiler info / etc
illustrating that, or more to the point illustrating the problem
you're concerned about.

>    If you really want, I can put a test case,

Yes, see "reporting bugs" in the manual.  We ask for all that info so
as to have something definite to fix or refute (as the case may be).

>   but it appears that you
>   can't test it on a real mc68000.

We have a netbsd 68040 among our test systems.


PS. All followups to the gmp-bugs list only.


More information about the gmp-bugs mailing list