This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] MIPS, use trap instead of break to detect divide by zero
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Ralf Baechle <ralf at linux-mips dot org>
- Cc: David Daney <ddaney at avtrex dot com>, gcc at gcc dot gnu dot org
- Date: 01 Jul 2004 22:36:20 -0400
- Subject: Re: [RFC] MIPS, use trap instead of break to detect divide by zero
- References: <40E3AE83.4040805@avtrex.com><20040702023059.GA18567@linux-mips.org>
Ralf Baechle <ralf@linux-mips.org> writes:
> On Wed, Jun 30, 2004 at 11:26:11PM -0700, David Daney wrote:
>
> > 3.4.x and 3.5 (and earlier versions as well) use a combination of a
> > branch and the break instruction to detect divide by zero.
> >
> > MIPS2 and above processors seem to all have a trap instruction that can
> > do the same job in one instruction. Using a trap instead of branch and
> > break can save at least one instruction per divide.
>
> I've been wondering why there is no option to disable this kind of checking
> entirely.
-mno-check-zero-division?
Ian