Skip to content

x86 sse4.2 popCnt16# needs to zero-extend its result

make TEST=cgrun071 EXTRA_HC_OPTS=-msse42 fails for me in all the non-ghci non-llvm ways.

For popCnt16# we emit popcnt %ax,%ax which doesn't clear the high 48 bits of the result.

Patch incoming.

Trac metadata
Trac field Value
Version 7.9
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (NCG)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC simonmar, tibbe
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information