X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fppc%2Fmove.lisp;h=e5b8324b494f5cd16335923e1cd1cf60dec3ba5b;hb=7deecae2d959173eda6a153d490c752c32050a9e;hp=a948dee3b09ed34bbc0b31aed1de6f527f6bcc0e;hpb=e6a7faf7fe4193f61eeaf1151f891c38b7c8e6ed;p=sbcl.git diff --git a/src/compiler/ppc/move.lisp b/src/compiler/ppc/move.lisp index a948dee..e5b8324 100644 --- a/src/compiler/ppc/move.lisp +++ b/src/compiler/ppc/move.lisp @@ -167,12 +167,12 @@ (:temporary (:scs (non-descriptor-reg)) temp) (:generator 4 (let ((done (gen-label))) - (inst andi. temp x 3) + (inst andi. temp x fixnum-tag-mask) (sc-case y (signed-reg - (inst srawi y x 2)) + (inst srawi y x n-fixnum-tag-bits)) (unsigned-reg - (inst srwi y x 2))) + (inst srwi y x n-fixnum-tag-bits))) (inst beq done) (loadw y x bignum-digits-offset other-pointer-lowtag) @@ -189,7 +189,7 @@ (:result-types tagged-num) (:note "fixnum tagging") (:generator 1 - (inst slwi y x 2))) + (inst slwi y x n-fixnum-tag-bits))) (define-move-vop move-from-word/fixnum :move (signed-reg unsigned-reg) (any-reg descriptor-reg)) @@ -207,7 +207,7 @@ (inst mtxer zero-tn) ; clear sticky overflow bit in XER, CR0 (inst addo temp x x) ; set XER OV if top two bits differ (inst addo. temp temp temp) ; set CR0 SO if any top three bits differ - (inst slwi y x 2) ; assume fixnum (tagged ok, maybe lost some high bits) + (inst slwi y x n-fixnum-tag-bits) ; assume fixnum (tagged ok, maybe lost some high bits) (inst bns done) (with-fixed-allocation (y pa-flag temp bignum-widetag (1+ bignum-digits-offset)) @@ -229,8 +229,8 @@ (move x arg) (let ((done (gen-label)) (one-word (gen-label))) - (inst srawi. temp x 29) - (inst slwi y x 2) + (inst srawi. temp x n-positive-fixnum-bits) + (inst slwi y x n-fixnum-tag-bits) (inst beq done) (with-fixed-allocation