fix misoptimization of TRUNCATE
authorNikodemus Siivola <nikodemus@random-state.net>
Thu, 1 Dec 2011 15:43:49 +0000 (17:43 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Mon, 5 Dec 2011 09:28:02 +0000 (11:28 +0200)
commit0b9304783ffb07853927ec7ab67378602d4f39b4
tree7f2617b52bc8b295759d7b659bab05d166d2cada
parent930e3879538d196aeb8c08e9d1b223f641f533d6
fix misoptimization of TRUNCATE

  Reported by Eric Marsden on sbcl-devel 2011-12-01.

   "illegal instruction on PowerPC"

  We check for result type being a VALUES-TYPE-P when deciding if to compute
  the second value for TRUNCATE or not -- but *WILD-TYPE* isn't a values type.

  Make VALUES-TYPE-P return true for it from now on. What could possibly go
  wrong? Just two other places need to change, it seems.
NEWS
src/code/early-type.lisp
src/code/late-type.lisp
src/compiler/ir2tran.lisp
tests/compiler.pure.lisp