Compile count{Leading,Trailing}Zeros to corresponding x86_64 instructions under ...
authorDmitry Ivanov <ethercrow@gmail.com>
Sat, 8 Dec 2018 15:45:02 +0000 (16:45 +0100)
committerBen Gamari <ben@smart-cactus.org>
Wed, 30 Jan 2019 15:06:31 +0000 (10:06 -0500)
commitc1d9416f2672b8d844141c0393fe773676749777
tree30d388f8070e3316e40397293ce4150c24351536
parentcc2261d42f6a954d88e355aaad41f001f65c95da
Compile count{Leading,Trailing}Zeros to corresponding x86_64 instructions under -mbmi2

This works similarly to existing implementation for popCount.
Trac ticket: #16086.
compiler/nativeGen/X86/CodeGen.hs
compiler/nativeGen/X86/Instr.hs
compiler/nativeGen/X86/Ppr.hs
docs/users_guide/using.rst
libraries/base/Data/Bits.hs
libraries/base/GHC/Int.hs
libraries/base/GHC/Word.hs