Skip to content
Snippets Groups Projects
Verified Commit 3592d110 authored by Moritz Angermann's avatar Moritz Angermann
Browse files

[Aarch64] No div-by-zero; disable test.

parent 191fea2b
Branches ghc-spj
No related tags found
No related merge requests found
......@@ -48,6 +48,15 @@ test('derefnull',
test('divbyzero',
[# SIGFPE on Linux
exit_code(136),
# The LLVM backend in particular does not guarantee any particular
# behavior on division-by-zero (#10332).
omit_ways(llvm_ways),
when(not(have_ncg()), skip),
# Aarch64 does not have div-by-zero exceptions for sdiv/udiv.
# The only option would be to implement this in assembly with checks for
# each devision. Neither gcc, nor llvm do this as of right now. Microsoft
# apparently does so though?
when(arch('aarch64'), skip),
# Apparently the output can be different on different
# Linux setups, so just ignore it. As long as we get
# the right exit code we're OK.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment