X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fmips%2Fmove.lisp;h=5bb0c85926fb3da40fdeb8f5ddfd1adaaa01383b;hb=49e8403800426f37a54d9b87353a31af36e7af40;hp=dcaae735aec7acc659e1e235f468333548edd053;hpb=52cfe54802db8736f1f4e2b67764c43bba9b78b3;p=sbcl.git diff --git a/src/compiler/mips/move.lisp b/src/compiler/mips/move.lisp index dcaae73..5bb0c85 100644 --- a/src/compiler/mips/move.lisp +++ b/src/compiler/mips/move.lisp @@ -141,7 +141,7 @@ (:arg-types tagged-num) (:note "fixnum untagging") (:generator 1 - (inst sra y x 2))) + (inst sra y x n-fixnum-tag-bits))) ;;; (define-move-vop move-to-word/fixnum :move (any-reg descriptor-reg) (signed-reg unsigned-reg)) @@ -152,7 +152,11 @@ (:results (y :scs (signed-reg unsigned-reg))) (:note "constant load") (:generator 1 - (inst li y (tn-value x)))) + (cond ((sb!c::tn-leaf x) + (inst li y (tn-value x))) + (t + (loadw y code-tn (tn-offset x) other-pointer-lowtag) + (inst sra y y n-fixnum-tag-bits))))) ;;; (define-move-vop move-to-word-c :move (constant) (signed-reg unsigned-reg)) @@ -210,7 +214,7 @@ (inst sll y x 2) (with-fixed-allocation - (y pa-flag temp bignum-widetag (1+ bignum-digits-offset)) + (y pa-flag temp bignum-widetag (1+ bignum-digits-offset) nil) (storew x y bignum-digits-offset other-pointer-lowtag)) (inst b done) (inst nop)