
#10332: AArch64 : divbyzero test fails -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: aarch64 Type of failure: Incorrect result | Test Case: at runtime | testsuite/tests/rts/divbyzero.hs Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by rwbarton): I think it's okay for `divInt` by 0 to be undefined behavior, it's an undocumented, internal function used to define `div`, which does check whether the divisor is 0. I would suggest disabling the test when the LLVM backend is in use, like in the test above it `derefnull`. In fact I think even on x86_64 Linux with LLVM it works only due to the luck that `divInt#` is too large to inline; if I call `quotInt#` directly from the test, it prints some large number instead. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10332#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler