[GHC] #15747: GHC panics when builds for arm as: ghc-stage1: panic! (the 'impossible' happened): padLiveArgs -- i > regNum ??

GHC ghc-devs at haskell.org
Sun Oct 28 17:40:54 UTC 2018


#15747: GHC panics when builds for arm as: ghc-stage1: panic! (the 'impossible'
happened): padLiveArgs -- i > regNum ??
-------------------------------------+-------------------------------------
        Reporter:  slyfox            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"d8495549ba9d194815c2d0eaee6797fc7c00756a/ghc" d849554/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="d8495549ba9d194815c2d0eaee6797fc7c00756a"
 Fix for T14251 on ARM

 We now calculate the SSE register padding needed to fix the calling
 convention in LLVM in a robust way: grouping them by whether
 registers in that class overlap (with the same class overlapping
 itself).

 My prior patch assumed that no matter the platform, physical
 register Fx aliases with Dx, etc, for our calling convention.

 This is unfortunately not the case for any platform except x86-64.

 Test Plan:
 Only know how to test on x86-64, but it should be tested on ARM with:

 `make test WAYS=llvm && make test WAYS=optllvm`

 Reviewers: bgamari, angerman

 Reviewed By: bgamari

 Subscribers: rwbarton, carter

 GHC Trac Issues: #15780, #14251, #15747

 Differential Revision: https://phabricator.haskell.org/D5254
 }}}

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


More information about the ghc-tickets mailing list