Skip to content
Snippets Groups Projects
Commit 785e5ff7 authored by wlott's avatar wlott
Browse files

Fixed unsigned-byte-32-test to correctly handle the 2-word bignum case.

parent 764f7372
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/type-vops.lisp,v 1.34 1992/07/28 20:37:57 wlott Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/type-vops.lisp,v 1.35 1992/08/04 14:16:36 wlott Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -458,7 +458,6 @@ ...@@ -458,7 +458,6 @@
;; Is it one? ;; Is it one?
(inst xor temp (+ (ash 1 type-bits) bignum-type)) (inst xor temp (+ (ash 1 type-bits) bignum-type))
(inst beq temp zero-tn single-word) (inst beq temp zero-tn single-word)
(inst nop)
;; If it's other than two, we can't be an (unsigned-byte 32) ;; If it's other than two, we can't be an (unsigned-byte 32)
(inst xor temp (logxor (+ (ash 1 type-bits) bignum-type) (inst xor temp (logxor (+ (ash 1 type-bits) bignum-type)
(+ (ash 2 type-bits) bignum-type))) (+ (ash 2 type-bits) bignum-type)))
...@@ -466,9 +465,12 @@ ...@@ -466,9 +465,12 @@
;; Get the second digit. ;; Get the second digit.
(loadw temp value (1+ bignum-digits-offset) other-pointer-type) (loadw temp value (1+ bignum-digits-offset) other-pointer-type)
;; All zeros, its an (unsigned-byte 32). ;; All zeros, its an (unsigned-byte 32).
(if not-p (cond (not-p
(inst beq temp zero-tn target) (inst beq temp zero-tn not-target)
(inst bne temp zero-tn target)) (inst bne temp zero-tn target))
(t
(inst beq temp zero-tn target)
(inst bne temp zero-tn not-target)))
(inst nop) (inst nop)
SINGLE-WORD SINGLE-WORD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment