Strange, but it exists for just on case (well not strange, there are just more negative numbers ...):

$ cat div.pasm
set I0, 0x80000000
div I1, I0, -1
print I1
print "\n"
end

Running it on PPC gives:

$ ./parrot div.pasm
0

And on x86:

$ ./parrot div.pasm
Floating point exception

What shall we do?
Abstract it like division by zero and throw an exception?
Just ignore it?

Comments welcome,
leo

Reply via email to