guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 274/437: x86: Correct wrong x87 optimization.


From: Andy Wingo
Subject: [Guile-commits] 274/437: x86: Correct wrong x87 optimization.
Date: Mon, 2 Jul 2018 05:14:35 -0400 (EDT)

wingo pushed a commit to branch lightning
in repository guile.

commit 8567d28d60a194142e91006afc2ceddac7c8b880
Author: pcpa <address@hidden>
Date:   Tue Dec 3 15:11:11 2013 -0200

    x86: Correct wrong x87 optimization.
    
        * lib/jit_x86-x87.c: Correct wrong optimization when
        loading the log(2) constant.
---
 ChangeLog         | 5 +++++
 lib/jit_x86-x87.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 8eaed7a..0a37f6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-12-03 Paulo Andrade <address@hidden>
 
+       * lib/jit_x86-x87.c: Correct wrong optimization when
+       loading the log(2) constant.
+
+2013-12-03 Paulo Andrade <address@hidden>
+
        * lib/jit_x86-cpu.c: Use the emms instruction before
        calling any function. This is particularly important
        when using c99 complex functions as it can easily
diff --git a/lib/jit_x86-x87.c b/lib/jit_x86-x87.c
index 9117bd6..253f6af 100644
--- a/lib/jit_x86-x87.c
+++ b/lib/jit_x86-x87.c
@@ -51,7 +51,7 @@ _x87rx(jit_state_t*, jit_int32_t, jit_int32_t,
 #  define fldl2e()                     x87ri(015, 2)
 #  define fldpi()                      x87ri(015, 3)
 #  define fldlg2()                     x87ri(015, 4)
-#  define fldln2()                     x87ri(015, 4)
+#  define fldln2()                     x87ri(015, 5)
 #  define fldz()                       x87ri(015, 6)
 #  define fsqrt_()                     x87ri(017, 2)
 #  define fldr(r0)                     x87ri(010, r0)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]