base: Implement bit casts between word and float types
authorErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 12 Apr 2017 18:09:49 +0000 (14:09 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 12 Apr 2017 18:53:06 +0000 (14:53 -0400)
commitaa206346e6f12c9f88fdf051185741761ea88fbb
tree3963e016c48662f00cf5c53cf3d75af05322092d
parentbb3712bf772fecb965f56a356ccf61437d324dcf
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
compiler/prelude/primops.txt.pp
libraries/base/GHC/Float.hs
libraries/base/cbits/CastFloatWord.cmm [new file with mode: 0644]
testsuite/tests/codeGen/should_run/all.T
testsuite/tests/codeGen/should_run/castFloatWord.hs [new file with mode: 0644]
testsuite/tests/codeGen/should_run/castFloatWord.stdout [new file with mode: 0644]