[GHC] #10286: native code generator: GHC crash at GHC.Prim SIMD vector

GHC ghc-devs at haskell.org
Sat Apr 11 00:36:22 UTC 2015


#10286: native code generator: GHC crash at GHC.Prim SIMD vector
-------------------------------------+-------------------------------------
        Reporter:  hkanai            |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash                              |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by carter):

 Hello!

 1) the SIMD primops in GHC are highly experimental, and they're ONLY
 supported on the -fllvm backend currently, so YOU WILL get a GHC panic
 when trying to compile them with the normal backend (this is planned to be
 fixed at some point, but also requires rethinking what the SIMD api SHOULD
 be, because writing good SIMD isn't portable between even different micro
 architectures!)

 2) your HOST CPU doesn't support AVX style instructions, so `DoubleX4#`
 sized simd values wont be compiled terribly efficiently, because  LLVM
 will (in some fashion) split those `DoubleX4#` values across two
 `DoubleX2#` sized registers.

 3) that llvm error about `!0 = metadata !{metadata !"top", i8* null}`
 seems like  a real bug! I'm going to rope some other folks in to help
 track that down.

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


More information about the ghc-tickets mailing list