Re: ppc division by zero weirdness
On Wed, Feb 19, 2003 at 07:25:13PM +0100, Marc Menem wrote:
> It seems to me that the ppc doesn't trigger an
> error when a division by zero while x86 does. Can
> anyone comment on this - what is going on when I
> divide by zero on my ppc ?
If you do an integer divide on PPC and try to divide by 0, then
the result is undefined, but it's not considered an error. In
fact, unless you tell it to detect overflow, it doesn't tell you
in any way that you did divide by zero. With overflow detection
on the instruction, it sets the overflow bit on illegal results.