[GHC] #12736: Calling a complex Haskell function (obtained via FFI wrapper function) from MSVC 64-bit C code (passed in as FunPtr) can leave SSE2 registers in the XMM6-XMM15 range modified
GHC
ghc-devs at haskell.org
Wed Oct 19 13:47:47 UTC 2016
#12736: Calling a complex Haskell function (obtained via FFI wrapper function) from
MSVC 64-bit C code (passed in as FunPtr) can leave SSE2 registers in the
XMM6-XMM15 range modified
-------------------------------------+-------------------------------------
Reporter: bavism | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (FFI) | Version: 7.10.3
Resolution: | Keywords:
| ffi,registers,sse2,clobber,xmm
Operating System: Windows | Architecture: x86_64
| (amd64)
Type of failure: Incorrect result | Test Case:
at runtime | https://github.com/bavis-m/raycast
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by carter):
To clarify: you could also compile your c code to assume it's in an
avx/avx2 microarchtiecture to see if that works. But if you wanna support
sse2 targets a teeny bit of xmm read write code might help
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12736#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list