caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Richard W.M. Jones" <rich@annexia.org>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] ppc64le behaviour of Int64.min_int ÷ -1
Date: Mon, 29 Jun 2015 19:15:42 +0100	[thread overview]
Message-ID: <20150629181542.GF31462@annexia.org> (raw)
In-Reply-To: <20150629180839.GB4876@annexia.org>

On Mon, Jun 29, 2015 at 07:08:39PM +0100, Richard W.M. Jones wrote:
> On Mon, Jun 29, 2015 at 08:00:30PM +0200, Xavier Leroy wrote:
> > Hi Richard,
> > 
> > You need to put "let division_crashes_on_overflow = true" in asmcomp/$ARCH/
> > arch.ml, just like in asmcomp/power/arch.ml.  The name of the variable is
> > perhaps counterintuitive but means "min_int / -1 doesn't do what we want,
> > so add tests (in cmmgen) for this case".
> 
> Thanks - I will try that.

And in fact it works too - great!

Rich.

      reply	other threads:[~2015-06-29 18:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29 17:50 Richard W.M. Jones
2015-06-29 18:00 ` Xavier Leroy
2015-06-29 18:08   ` Richard W.M. Jones
2015-06-29 18:15     ` Richard W.M. Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150629181542.GF31462@annexia.org \
    --to=rich@annexia.org \
    --cc=Xavier.Leroy@inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).