[GHC] #9340: Implement new `clz` inline primop

GHC ghc-devs at haskell.org
Tue Aug 12 13:58:37 UTC 2014


#9340: Implement new `clz` inline primop
-------------------------------------+-------------------------------------
              Reporter:  hvr         |            Owner:  hvr
                  Type:  feature     |           Status:  patch
  request                            |        Milestone:  7.10.1
              Priority:  normal      |          Version:  7.8.2
             Component:  Compiler    |         Keywords:  primop clz
  (CodeGen)                          |     Architecture:  Unknown/Multiple
            Resolution:              |       Difficulty:  Unknown
      Operating System:              |       Blocked By:
  Unknown/Multiple                   |  Related Tickets:
       Type of failure:              |
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:  Phab:D144   |
-------------------------------------+-------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"9f285fa40f6fb0c8495dbec771d798ac6dfaabee/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="9f285fa40f6fb0c8495dbec771d798ac6dfaabee"
 Add CMOVcc insns to x86 NCG

 This is a pre-requisite for implementing count-{leading,trailing}-zero
 prim-ops (re #9340) and may be useful to NCG to help turn some code into
 branch-less code sequences.

 Test Plan: Compiles and validates in combination with clz/ctz primop impl

 Reviewers: ezyang, rwbarton, simonmar, austin

 Subscribers: simonmar, relrod, ezyang, carter

 Differential Revision: https://phabricator.haskell.org/D141
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9340#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list