
#11792: Optimised unsafe FFI call can get wrong argument -------------------------------------+------------------------------------- Reporter: Szunti | Owner: Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2263 Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonmar): Hmm, I'd like to find a way to fix this without making codegen worse for every unsafe call. The problem appears to be that the code for the fourth argument uses `divq` which clobbers `%rdx`. I need to refresh my memory about how this is supposed to work... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11792#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler