Add bit scan {forward,reverse} insns to x86 NCG
authorHerbert Valerio Riedel <hvr@gnu.org>
Mon, 11 Aug 2014 07:54:36 +0000 (09:54 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Tue, 12 Aug 2014 13:57:06 +0000 (15:57 +0200)
commit3669b60cb0b24e22563bfe624aab4aba369cbfca
tree93a345eaa4f1b155fb7dc217c2269a5c51995982
parent3694d8771168690c72be2a5b60add8e1024dc426
Add bit scan {forward,reverse} insns to x86 NCG

This is a pre-requisite for implementing count-{leading,trailing}-zero
prim-ops (re #9340)

Reviewers: ezyang, rwbarton, simonmar, austin

Subscribers: simonmar, relrod, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D141
compiler/nativeGen/X86/Instr.hs
compiler/nativeGen/X86/Ppr.hs