Fix bug in reference->register-transfer. The bug was the cause of
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 23 Feb 1993 17:34:10 +0000 (17:34 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 23 Feb 1993 17:34:10 +0000 (17:34 +0000)
multiple

(mov w (r 0) (r 0))

instructions in the output.

v7/src/compiler/machines/i386/lapgen.scm

index 8ab62581894ed8aded0d0d1c090be7d0a36bc655..3c0b3305ec055a4ada4b5f58835359e780c09233 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/machines/i386/lapgen.scm,v 1.21 1992/08/05 21:34:38 jinx Exp $
+$Id: lapgen.scm,v 1.22 1993/02/23 17:34:10 gjr Exp $
 
-Copyright (c) 1992 Massachusetts Institute of Technology
+Copyright (c) 1992-1993 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -83,7 +83,7 @@ MIT in each case. |#
   (machine->machine-register source target))
 
 (define (reference->register-transfer source target)
-  (if (equal? (INST-EA ,target) source)
+  (if (equal? (INST-EA (R ,target)) source)
       (LAP)
       (memory->machine-register source target)))