summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2017-04-12 14:09:49 -0400
committerBen Gamari <ben@smart-cactus.org>2017-04-12 14:53:06 -0400
commitaa206346e6f12c9f88fdf051185741761ea88fbb (patch)
tree3963e016c48662f00cf5c53cf3d75af05322092d /compiler
parentbb3712bf772fecb965f56a356ccf61437d324dcf (diff)
downloadhaskell-aa206346e6f12c9f88fdf051185741761ea88fbb.tar.gz
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
Diffstat (limited to 'compiler')
-rw-r--r--compiler/prelude/primops.txt.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp
index 8c936c6ac5..8c9cc92b9a 100644
--- a/compiler/prelude/primops.txt.pp
+++ b/compiler/prelude/primops.txt.pp
@@ -2830,8 +2830,9 @@ pseudoop "unsafeCoerce#"
* Casting {\tt Any} back to the real type
- * Casting an unboxed type to another unboxed type of the same size
- (but not coercions between floating-point and integral types)
+ * Casting an unboxed type to another unboxed type of the same size.
+ (Casting between floating-point and integral types does not work.
+ See the {\tt GHC.Float} module for functions to do work.)
* Casting between two types that have the same runtime representation. One case is when
the two types differ only in "phantom" type parameters, for example