Skip to content
  • Peter Trommler's avatar
    nativeGen.PPC: Fix shift arith. right > 31 bits · fb0d5120
    Peter Trommler authored and Ben Gamari's avatar Ben Gamari committed
    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
    fb0d5120