[Qemu-devel] Host FPE for overflowing division on MIPS

2007-12-21 Thread Richard Sandiford
[Sorry if this is a dup. Wasn't sure if the list was subscribers-only.] Running the libjava testsuite for -mabi=64 on a x86_64-linux-gnu-x-mips64 QEMU causes the emulator to exit with an FPE. The problem is that we use lldiv for ddiv, and lldiv is undefined for both divisions by zero and for div

[Qemu-devel] Host FPE for overflowing division on MIPS

2007-12-20 Thread Richard Sandiford
Running the libjava testsuite for -mabi=64 on a x86_64-linux-gnu-x-mips64 QEMU causes the emulator to exit with an FPE. The problem is that we use lldiv for ddiv, and lldiv is undefined for both divisions by zero and for divisions whose result is not representable. We special-case divisions in th