tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: standards on SIGFPE for divide by zero
On Wed, Mar 02, 2011 at 06:34:11PM +0000, Taylor R Campbell wrote:
> Date: Tue, 1 Mar 2011 13:41:24 -0800
> From: Matt Thomas <jabbathespud%gmail.com@localhost>
>
> PowerPC cann't raise an exception on integer divide by zero. It can
> detect it if using the divwo instruction but it still won't raise an
> exception. Instead you need to check the OV bit in the XER register.
>
> I see -- I assumed the question implied there was an option about
> whether to deliver SIGFPE for integer division by zero on powerpc.
You want the program to get a floating-point-exception signal on a bad
integer divide?
Thor
Home |
Main Index |
Thread Index |
Old Index