[RFC] MIPS division by zero and libgcj...

Ralf Baechle ralf@linux-mips.org
Thu Jun 10 20:27:00 GMT 2004


On Thu, Jun 10, 2004 at 08:31:47PM +0100, Andrew Haley wrote:

> I thought that the MIPS never generated a hardware trap for division,
> but instead there was an assembler macro that did the test for
> overflow, and the "div" instruction actually generates this test
> inline.  Maybe do a disassembly to check.

Linux/MIPS's behaviour is consistent with all MIPS UNIX flavours I know
of both those following the SysV ABI and others such as Ultrix.

  Ralf



More information about the Gcc mailing list