projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.39.9: improvements to the manual
[sbcl.git]
/
src
/
compiler
/
ppc
/
system.lisp
diff --git
a/src/compiler/ppc/system.lisp
b/src/compiler/ppc/system.lisp
index
d640ab9
..
301da10
100644
(file)
--- a/
src/compiler/ppc/system.lisp
+++ b/
src/compiler/ppc/system.lisp
@@
-42,7
+42,7
@@
(inst beq done)
;; Okay, it is an immediate. If fixnum, we want zero. Otherwise,
;; we want the low 8 bits.
(inst beq done)
;; Okay, it is an immediate. If fixnum, we want zero. Otherwise,
;; we want the low 8 bits.
- (inst andi. result object #b11)
+ (inst andi. result object fixnum-tag-mask)
(inst beq done)
;; It wasn't a fixnum, so get the low 8 bits.
(inst andi. result object widetag-mask)
(inst beq done)
;; It wasn't a fixnum, so get the low 8 bits.
(inst andi. result object widetag-mask)
@@
-112,7
+112,7
@@
(inst andi. t1 t1 widetag-mask)
(sc-case data
(any-reg
(inst andi. t1 t1 widetag-mask)
(sc-case data
(any-reg
- (inst slwi t2 data (- n-widetag-bits 2))
+ (inst slwi t2 data (- n-widetag-bits n-fixnum-tag-bits))
(inst or t1 t1 t2))
(immediate
(inst ori t1 t1 (ash (tn-value data) n-widetag-bits)))
(inst or t1 t1 t2))
(immediate
(inst ori t1 t1 (ash (tn-value data) n-widetag-bits)))
@@
-121,13
+121,14
@@
(move res x)))
(move res x)))
-(define-vop (make-fixnum)
+(define-vop (pointer-hash)
+ (:translate pointer-hash)
(:args (ptr :scs (any-reg descriptor-reg)))
(:results (res :scs (any-reg descriptor-reg)))
(:args (ptr :scs (any-reg descriptor-reg)))
(:results (res :scs (any-reg descriptor-reg)))
+ (:policy :fast-safe)
(:generator 1
(:generator 1
- ;;
- ;; Some code (the hash table code) depends on this returning a
- ;; positive number so make sure it does.
+ ;; FIXME: It would be better if this would mask the lowtag,
+ ;; and shift the result into a positive fixnum like on x86.
(inst rlwinm res ptr n-fixnum-tag-bits 1 n-positive-fixnum-bits)))
(define-vop (make-other-immediate-type)
(inst rlwinm res ptr n-fixnum-tag-bits 1 n-positive-fixnum-bits)))
(define-vop (make-other-immediate-type)
@@
-142,8
+143,8
@@
(inst slwi temp val n-widetag-bits)
(inst ori res temp (tn-value type)))
(t
(inst slwi temp val n-widetag-bits)
(inst ori res temp (tn-value type)))
(t
- (inst srawi temp type 2)
- (inst slwi res val (- n-widetag-bits 2))
+ (inst srawi temp type n-fixnum-tag-bits)
+ (inst slwi res val (- n-widetag-bits n-fixnum-tag-bits))
(inst or res res temp)))))
\f
(inst or res res temp)))))
\f