[GHC] #6135: Unboxed Booleans

GHC ghc-devs at haskell.org
Tue Jun 11 23:32:27 CEST 2013


#6135: Unboxed Booleans
-------------------------------+--------------------------------------------
  Reporter:  benl              |          Owner:  jstolarek       
      Type:  feature request   |         Status:  patch           
  Priority:  normal            |      Milestone:  7.8.1           
 Component:  Compiler          |        Version:  7.4.1           
Resolution:                    |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:  #605            
-------------------------------+--------------------------------------------

Comment(by gregorycollins):

 It's the {{{setge  %cl}}} instruction in the code snippet on that wiki
 page, which:

 {{{
         Sets the byte in the operand to 1 if the Sign Flag equals the
         Overflow Flag, otherwise sets the operand to 0.
 }}}

 (see e.g. http://web.itu.edu.tr/kesgin/mul06/intel/instr/setge_setnl.html)

 Or one of the other {{{SETcc}}} functions. This instruction doesn't
 branch, so the generated code pipelines better.

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



More information about the ghc-tickets mailing list