[GHC] #7942: aarch64 support in ghc

GHC ghc-devs at haskell.org
Thu Aug 7 08:34:55 UTC 2014


#7942: aarch64 support in ghc
-------------------------------------+-------------------------------------
              Reporter:  jcapik      |            Owner:
                  Type:  feature     |           Status:  closed
  request                            |        Milestone:  7.10.1
              Priority:  normal      |          Version:
             Component:  Compiler    |         Keywords:
            Resolution:  fixed       |     Architecture:  arm
      Operating System:  Linux       |       Difficulty:  Unknown
       Type of failure:  GHC         |       Blocked By:
  doesn't work at all                |  Related Tickets:  7623, 8664
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by lukexi):

 OK, so if I replace the offending call with
 {{{
 "ldr lr, [sp]\n\t"
 "add sp, sp, %3\n\t"
 }}}
 (which I believe should be functionally equivalent)

 I can compile, but then get a crash running on the device here:
 {{{

 HelloHaskell`StgRun:
 0x1004cea34:  stp    x28, x27, [sp, #-96]!
 0x1004cea38:  stp    x26, x25, [sp, #16]
 0x1004cea3c:  stp    x24, x23, [sp, #32]
 0x1004cea40:  stp    x22, x21, [sp, #48]
 0x1004cea44:  stp    x20, x19, [sp, #64]
 0x1004cea48:  stp    fp, lr, [sp, #80]
 0x1004cea4c:  stp    x19, x20, [sp, #-16]!
 0x1004cea50:  stp    x21, x22, [sp, #-16]!
 0x1004cea54:  stp    x23, x24, [sp, #-16]!
 0x1004cea58:  stp    x25, x26, [sp, #-16]!
 0x1004cea5c:  stp    x27, x28, [sp, #-16]!
 0x1004cea60:  stp    x16, x17, [sp, #-16]!
 0x1004cea64:  str    lr, [sp, #-8]!
 0x1004cea68:  str    lr, [sp, #16384]     <------------EXC_BAD_ACCESS
 (code=259, address=0x16fdcf7a8)
 0x1004cea6c:  mov    x19, x1
 0x1004cea70:  br     x0

 }}}

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


More information about the ghc-tickets mailing list