From 3b92118766d3c6578ab30423c06346ef2e9622eb Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Tue, 18 Feb 1992 21:56:48 +0000 Subject: [PATCH] Fix bug in multiply-fixnum-constant. There is no (IMUL (R ?foo) (& ?bar)) instruction. It is an assembler macro for (IMUL (R ?foo) (R ?foo) (& ?bar)) --- v7/src/compiler/machines/i386/rulfix.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v7/src/compiler/machines/i386/rulfix.scm b/v7/src/compiler/machines/i386/rulfix.scm index 32c5342d5..bb9cd17cd 100644 --- a/v7/src/compiler/machines/i386/rulfix.scm +++ b/v7/src/compiler/machines/i386/rulfix.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/machines/i386/rulfix.scm,v 1.20 1992/02/18 04:35:56 jinx Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/machines/i386/rulfix.scm,v 1.21 1992/02/18 21:56:48 jinx Exp $ $MC68020-Header: /scheme/src/compiler/machines/bobcat/RCS/rules1.scm,v 4.36 1991/10/25 06:49:58 cph Exp $ Copyright (c) 1992 Massachusetts Institute of Technology @@ -287,7 +287,8 @@ MIT in each case. |# (NEG W ,target)) (LAP (SAL W ,target (& ,expt-of-2)))))) (else - (LAP (IMUL W ,target (& ,constant)))))) + ;; target must be a register! + (LAP (IMUL W ,target ,target (& ,constant)))))) ;;;; Operation tables -- 2.25.1