[commit: ghc] master: base: Implement bit casts between word and float types (aa20634)

git at git.haskell.org git at git.haskell.org
Wed Apr 12 18:53:38 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/aa206346e6f12c9f88fdf051185741761ea88fbb/ghc

>---------------------------------------------------------------

commit aa206346e6f12c9f88fdf051185741761ea88fbb
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date:   Wed Apr 12 14:09:49 2017 -0400

    base: Implement bit casts between word and float types
    
    Test Plan: Test on x86 and x86_64
    
    Reviewers: duncan, trofi, simonmar, tibbe, hvr, austin, rwbarton,
    bgamari
    
    Reviewed By: duncan
    
    Subscribers: Phyx, DemiMarie, rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D3358


>---------------------------------------------------------------

aa206346e6f12c9f88fdf051185741761ea88fbb
 compiler/prelude/primops.txt.pp                    |   5 +-
 libraries/base/GHC/Float.hs                        |  91 ++++++++-
 libraries/base/cbits/CastFloatWord.cmm             |  69 +++++++
 testsuite/tests/codeGen/should_run/all.T           |   2 +
 .../tests/codeGen/should_run/castFloatWord.hs      |  28 +++
 .../tests/codeGen/should_run/castFloatWord.stdout  | 204 +++++++++++++++++++++
 6 files changed, 396 insertions(+), 3 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc aa206346e6f12c9f88fdf051185741761ea88fbb


More information about the ghc-commits mailing list