On Thu, 20 Jun 2024, YunQiang Su wrote: > The DIV instructions of MIPS won't be trapped themself if the divisor > is zero. The compiler will emit a conditional trap instruct for it. > So the signal will be SIGTRAP instead of SIGFPE.
It's an OS kernel bug if you get SIGTRAP for integer division by zero, so if a test case fails, it rightfully does. Maciej