guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] 272/437: x86: Correct wrong x87 float indexed store code


From: Andy Wingo
Subject: [Guile-commits] 272/437: x86: Correct wrong x87 float indexed store code generation.
Date: Mon, 2 Jul 2018 05:14:35 -0400 (EDT)

wingo pushed a commit to branch lightning
in repository guile.

commit c162b9d836651e285c5c3b788fff0cfeb40b2230
Author: pcpa <address@hidden>
Date:   Mon Dec 2 19:17:03 2013 -0200

    x86: Correct wrong x87 float indexed store code generation.
    
        * lib/jit_x86-x87.c: Correct wrong code generation due
        to comparing the base and not the value register with
        %st(0) in stxi_f.
---
 ChangeLog         | 6 ++++++
 lib/jit_x86-x87.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 462b7f0..eef5617 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2013-12-02 Paulo Andrade <address@hidden>
 
+       * lib/jit_x86-x87.c: Correct wrong code generation due
+       to comparing the base and not the value register with
+       %st(0) in stxi_f.
+
+2013-12-02 Paulo Andrade <address@hidden>
+
        * lib/jit_x86-x87.c, lib/jit_x86.c: Use 8 bytes aligned
        stack offset for float/double x87 to/from sse move.
 
diff --git a/lib/jit_x86-x87.c b/lib/jit_x86-x87.c
index 903fa50..9117bd6 100644
--- a/lib/jit_x86-x87.c
+++ b/lib/jit_x86-x87.c
@@ -932,7 +932,7 @@ _x87_stxi_f(jit_state_t *_jit, jit_word_t i0, jit_int32_t 
r0, jit_int32_t r1)
        x87_stxr_f(rn(reg), r0, r1);
        jit_unget_reg(reg);
     }
-    else if (r0 == _ST0_REGNO)
+    else if (r1 == _ST0_REGNO)
        fstsm(i0, r0, _NOREG, _SCL1);
     else {
        fxchr(r1);



reply via email to

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