The test requires that an integer division by zero causes a trap, leading to a
signal like SIGFPE. This is the case on x86. On many other architectures, such
as Arm (unless software division is used and __aeabi_idiv0 is patched),
Power, RISC-V, LoongArch, there is no trap. Therefore, it's more appropriate to
invert the condition to run the test.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo