From ddc83d41a258a1da7c70348a654bbd521b6943ac Mon Sep 17 00:00:00 2001
From: sewardj <unknown>
Date: Tue, 25 Jan 2000 10:25:15 +0000
Subject: [PATCH] [project @ 2000-01-25 10:25:15 by sewardj] Add missing final
 paragraph of explaination about x86 FP trickery.

---
 ghc/compiler/nativeGen/MachMisc.lhs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ghc/compiler/nativeGen/MachMisc.lhs b/ghc/compiler/nativeGen/MachMisc.lhs
index f9947a44dacf..0487b7249b8f 100644
--- a/ghc/compiler/nativeGen/MachMisc.lhs
+++ b/ghc/compiler/nativeGen/MachMisc.lhs
@@ -463,6 +463,12 @@ FP stack, the operation done, and the result copied back into the
 relevant register.  There are only six %fake registers because 2 are
 needed for the translation, and x86 has 8 in total.
 
+The translation is inefficient but is simple and it works.  A cleverer
+translation would handle a sequence of insns, simulating the FP stack
+contents, would not impose a fixed mapping from %fake to %st regs, and
+hopefully could avoid most of the redundant reg-reg moves of the
+current translation.
+
 \begin{code}
 #if i386_TARGET_ARCH
 
-- 
GitLab