Cleverer handling of medium (32 < bit width <= 64) constants on x86-64
authorPaul Khuong <pvk@pvk.ca>
Mon, 20 May 2013 20:58:30 +0000 (16:58 -0400)
committerPaul Khuong <pvk@pvk.ca>
Tue, 21 May 2013 02:17:24 +0000 (22:17 -0400)
commit39117fb4cade75e692196cfca1ae3c320546a254
tree9a459ad1535f89f61558317a15d682a9d2d87387
parentaae8dd32df01d68b6ce9a21cbaf1d78a685d8302
Cleverer handling of medium (32 < bit width <= 64) constants on x86-64

 * Exploit sign-extension for large unsigned constants.

 * Always force the remaining operand and the result in a register:
   in the worst case, we use a RIP-relative unboxed constant.

 * Based on a patch by Douglas Katzman.
NEWS
src/compiler/x86-64/arith.lisp