[GHC] #10677: slightly silly assembly for testing whether a Word# is 0##

GHC ghc-devs at haskell.org
Fri Aug 7 08:54:38 UTC 2015


#10677: slightly silly assembly for testing whether a Word# is 0##
-------------------------------------+-------------------------------------
        Reporter:  rwbarton          |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  low               |               Milestone:
       Component:  Compiler          |                 Version:  7.11
  (CodeGen)                          |
      Resolution:                    |                Keywords:  newcomer
Operating System:  Unknown/Multiple  |            Architecture:  x86_64
 Type of failure:  Runtime           |  (amd64)
  performance bug                    |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #10750            |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by nomeata):

 I tried to fix this, but now (presumably due to a later optimization) it
 produces

 {{{
         testq %r14,%r14
         jne _cQl
 }}}

 I hope that is ok as well.

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


More information about the ghc-tickets mailing list