[GHC] #3557: CPU Vector instructions in GHC.Prim

GHC cvs-ghc at haskell.org
Fri Mar 25 00:06:05 CET 2011


#3557: CPU Vector instructions in GHC.Prim
---------------------------------+------------------------------------------
    Reporter:  guest             |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:  _|_         
   Component:  Compiler (NCG)    |      Version:  6.11        
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by vivian):

 I've attached a patch for what I've done so far, it is not pretty.

 Two recommendations after having done some coding:

 1) Don't try and have dummy functions for CPUs that don't support specific
 instructions, insist that the programmer do the checking that they are
 using the right primOps.  This is for efficiency and sanity.

 2) There needs to be some CMM programming, for example to pack/unpack
 scalar to vector, which require combinations of machine ops

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



More information about the Glasgow-haskell-bugs mailing list