gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Behaviour of DIV and MOD in PIM4


From: Gaius Mulley
Subject: Re: [Gm2] Behaviour of DIV and MOD in PIM4
Date: Tue, 22 Mar 2016 15:38:58 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Xin Wang <address@hidden> writes:

> Hi,
>
> Behaviour of DIV and MOD in PIM4 seems to be not consistant with document[1].
>
> When compiling with gcc-4.7.4+gm2-1.1.5:
>
> 31 DIV (-10) = -4
> 31 MOD (-10) = -9
> (-31) DIV (-10) = +3
> (-31) MOD (-10) = -1
>
> Which is different from document:
>
> lval    rval    DIV    MOD
>  31    -10    -3    1
> -31    -10    4    9
>
> [1] http://www.nongnu.org/gm2/dialect.html

Hi Xin,

many thanks for the bug report - indeed you are correct.  I've checked
the examples and documentation and can confirm the documentation is
correct.  I've written more test code and will produce a fix shortly,

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]