[GHC] #9435: x86 sse4.2 popCnt16# needs to zero-extend its result
GHC
ghc-devs at haskell.org
Tue Aug 12 13:27:48 UTC 2014
#9435: x86 sse4.2 popCnt16# needs to zero-extend its result
-------------------------------------+-------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.9
(NCG) | Keywords:
Resolution: | Architecture: x86_64 (amd64)
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: Incorrect | Related Tickets:
result at runtime |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by rwbarton):
`popCnt8#` is affected too, but (possibly by luck, possibly not) we reuse
the source register as the destination register and we needed to zero-
extend the source anyways as there is no 8-bit `popcnt` instruction.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9435#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list