[aarch64-port-dev ] simulator: multiplication/divsion for LONG/INT_MIN and -1
D.Sturm
D.Sturm42 at gmail.com
Sun Apr 27 23:07:05 UTC 2014
>
> I'm a bit mystified by the problem with multiplication. Can you
> tell me what error you got?
Multiplication works fine for me, but it's undefined behavior according
to the standard, so gcc could introduce some subtle bugs - I thought it
better to fix both while at it.
> > That exception is caught by the signal handler in the JVM and then
> > correctly handled there in most situations - I ran into some throwing
> > assertion when it was simulating graal code but haven't looked further
> into
> > it.
> >
> > The following patch should take care of this. The smulh instruction uses
> > inline assembly but I think x86 does the right thing(TM) there.
>
> Have you got a http://sourceforge.net account? Then you can check stuff
> in.
User dansturm, but I doubt I'll have to supply any more patches to the
simulator,
seems pretty solid apart from this small thing :-)
--Daniel
More information about the aarch64-port-dev
mailing list