double->single float conversion isn't a no-op on x87 anymore
authorPaul Khuong <pvk@pvk.ca>
Fri, 28 Jun 2013 05:45:49 +0000 (01:45 -0400)
committerPaul Khuong <pvk@pvk.ca>
Fri, 28 Jun 2013 05:45:49 +0000 (01:45 -0400)
commit74cf7a4d01664fbf72a662ba093ad67ca243b524
tree3bc1d8c8d3873460e6aa6e8f86a0afa6f42cfd2f
parent1656e5415acddf6655569b8332e138c36640c08a
double->single float conversion isn't a no-op on x87 anymore

 The conversion can result in overflow, so pass through a stack
 temporary to force a truncation.

 Test case by Peter Keller on sbcl-devel, 2013-06-26.
src/compiler/x86/float.lisp
tests/compiler.pure.lisp