[GHC] #10870: PPC.Ppr: Shift by 32 bits is not allowed.

GHC ghc-devs at haskell.org
Wed Nov 11 12:04:22 UTC 2015


#10870: PPC.Ppr: Shift by 32 bits is not allowed.
-------------------------------------+-------------------------------------
        Reporter:  nomeata           |                Owner:
            Type:  bug               |               Status:  merge
        Priority:  normal            |            Milestone:  7.10.3
       Component:  Compiler          |              Version:  7.10.2
  (CodeGen)                          |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:  powerpc
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1322,
       Wiki Page:                    |  Phab:1459
-------------------------------------+-------------------------------------

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

 In [changeset:"fb0d5120d383324c6934144b938525378e3ade75/ghc" fb0d512/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="fb0d5120d383324c6934144b938525378e3ade75"
 nativeGen.PPC: Fix shift arith. right > 31 bits

 Arithmetic right shifts of more than 31 bits set all bits to
 the sign bit on PowerPC. iThe assembler does not allow shift
 amounts larger than 32 so do an arithemetic right shift of 31
 bit instead.

 Fixes #10870

 Test Plan: validate (especially on powerpc)

 Reviewers: austin, erikd, bgamari

 Reviewed By: bgamari

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D1459

 GHC Trac Issues: #10870
 }}}

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


More information about the ghc-tickets mailing list