(:temporary (:scs (non-descriptor-reg)) temp)
(:translate *)
(:generator 4
- (inst sra temp y 2)
+ (inst sra temp y n-fixnum-tag-bits)
(inst mult x temp)
(inst mflo r)))
(inst nop)
(inst div x y)
(inst mflo temp)
- (inst sll q temp 2)
+ (inst sll q temp n-fixnum-tag-bits)
(inst mfhi r)))
(define-vop (fast-truncate/unsigned fast-unsigned-binop)
(:results (digit :scs (unsigned-reg)))
(:result-types unsigned-num)
(:generator 1
- (inst sra digit fixnum 2)))
+ (inst sra digit fixnum n-fixnum-tag-bits)))
(define-vop (bignum-floor)
(:translate sb!bignum:%floor)
(inst addu header rank (fixnumize (1- array-dimensions-offset)))
(inst sll header n-widetag-bits)
(inst or header header type)
- (inst srl header 2)
+ (inst srl header n-fixnum-tag-bits)
(pseudo-atomic (pa-flag)
(inst or result alloc-tn other-pointer-lowtag)
(storew header result 0 other-pointer-lowtag)
(loadw temp x 0 other-pointer-lowtag)
(inst sra temp n-widetag-bits)
(inst subu temp (1- array-dimensions-offset))
- (inst sll res temp 2)))
+ (inst sll res temp n-fixnum-tag-bits)))
\f
;;;; Bounds checking routine.
(define-vop (check-bound)
(:temporary (:scs (non-descriptor-reg) :to (:result 0)) temp result)
(:generator 20
(inst srl temp index ,bit-shift)
- (inst sll temp 2)
+ (inst sll temp n-fixnum-tag-bits)
(inst addu lip object temp)
(inst lw result lip
(- (* vector-data-offset n-word-bytes)
`((inst sll temp ,(1- (integer-length bits)))))
(inst srl result temp)
(inst and result ,(1- (ash 1 bits)))
- (inst sll value result 2)))
+ (inst sll value result n-fixnum-tag-bits)))
(define-vop (,(symbolicate 'data-vector-ref-c/ type))
(:translate data-vector-ref)
(:policy :fast-safe)
(:temporary (:scs (non-descriptor-reg) :from (:argument 1)) shift)
(:generator 25
(inst srl temp index ,bit-shift)
- (inst sll temp 2)
+ (inst sll temp n-fixnum-tag-bits)
(inst addu lip object temp)
(inst lw old lip
(- (* vector-data-offset n-word-bytes)
(:temporary (:scs (interior-reg)) lip)
(:temporary (:scs (any-reg) :from (:argument 1)) shift)
(:generator 6
- (inst sll shift index 2)
+ (inst sll shift index n-fixnum-tag-bits)
(inst addu lip object shift)
(let ((real-tn (complex-double-reg-real-tn value)))
(ld-double real-tn lip (- (* vector-data-offset n-word-bytes)
(:temporary (:scs (interior-reg)) lip)
(:temporary (:scs (any-reg) :from (:argument 1)) shift)
(:generator 6
- (inst sll shift index 2)
+ (inst sll shift index n-fixnum-tag-bits)
(inst addu lip object shift)
(let ((value-real (complex-double-reg-real-tn value))
(result-real (complex-double-reg-real-tn result)))