[GHC] #12355: Invalid assembly in foreign prim

GHC ghc-devs at haskell.org
Fri Jul 1 08:31:19 UTC 2016


#12355: Invalid assembly in foreign prim
-------------------------------------+-------------------------------------
           Reporter:  osa1           |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 {{{
 ➜  prim_panic ghc Lib.hs
 [1 of 1] Compiling Lib              ( Lib.hs, Lib.o )
 /tmp/ghc14440_0/ghc_2.s: Assembler messages:

 /tmp/ghc14440_0/ghc_2.s:65:0: error:
      Error: number of operands mismatch for `jmp'
 `gcc' failed in phase `Assembler'. (Exit code: 1)
 ➜  prim_panic cat Lib.hs
 {-# LANGUAGE GHCForeignImportPrim, UnliftedFFITypes, MagicHash #-}

 module Lib where

 import GHC.Prim

 foreign import prim f1 :: Int# -> Int#
 }}}

 Tried with: HEAD as of today, 8.0.1.

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


More information about the ghc-tickets mailing list