From c855188598407d2221e7b1c33506ed7bda50bb01 Mon Sep 17 00:00:00 2001
From: wlott <wlott>
Date: Fri, 18 May 1990 00:57:18 +0000
Subject: [PATCH] Changed a SC restriction to be unsigned-reg instead of doing
 the shift myself.  Changed get-header-data to treat the header data as
 unsigned.

---
 compiler/mips/system.lisp | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/compiler/mips/system.lisp b/compiler/mips/system.lisp
index 8041efd12..a17d09355 100644
--- a/compiler/mips/system.lisp
+++ b/compiler/mips/system.lisp
@@ -7,7 +7,7 @@
 ;;; Scott Fahlman (FAHLMAN@CMUC). 
 ;;; **********************************************************************
 ;;;
-;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/system.lisp,v 1.14 1990/05/14 02:00:23 wlott Exp $
+;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/system.lisp,v 1.15 1990/05/18 00:57:18 wlott Exp $
 ;;;
 ;;;    MIPS VM definitions of various system hacking operations.
 ;;;
@@ -98,12 +98,10 @@
 
 (define-vop (get-header-data)
   (:args (x :scs (descriptor-reg)))
-  (:temporary (:scs (non-descriptor-reg) :type random) temp)
-  (:results (res :scs (any-reg descriptor-reg)))
+  (:results (res :scs (unsigned-reg)))
   (:generator 6
-    (loadw temp x 0 vm:other-pointer-type)
-    (inst sra temp temp vm:type-bits)
-    (inst sll res temp 2)))
+    (loadw res x 0 vm:other-pointer-type)
+    (inst srl res res vm:type-bits)))
 
 (define-vop (set-header-data)
   (:args (x :scs (descriptor-reg) :target res)
-- 
GitLab