Skip to content
  • Peter Trommler's avatar
    PPC NCG: Fix float parameter passing on 64-bit. · 2897be77
    Peter Trommler authored and Ben Gamari's avatar Ben Gamari committed
    On Linux 64-bit PowerPC the first 13 floating point parameters are
    passed in registers. We only passed the first 8 floating point params.
    
    The alignment of a floating point single precision value in ELF v1.9 is
    the second word of a doubleword. For ELF v2 we support only little
    endian and the least significant word of a doubleword is the first word,
    so no special handling is required.
    
    Add a regression test.
    
    Test Plan: validate on powerpc Linux and AIX
    
    Reviewers: erikd, hvr, austin, simonmar, bgamari
    
    Reviewed By: simonmar
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2327
    
    GHC Trac Issues: #12134
    2897be77