wingo pushed a commit to branch lightning
in repository guile.
commit cf2be67c5afeb70bdca5ad27a89d81a2d6b76996
Author: pcpa <[email protected]>
Date: Sun Aug 10 11:21:57 2014 -0300
MIPS: Correct use of wrong test register
* lib/jit_mips-cpu.c: Correct typo in the jit_bmsr
implementation that was using the wrong test result
register.
---
ChangeLog | 6 ++++++
lib/jit_mips-cpu.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 08e05bb..065fa8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-08-10 Paulo Andrade <[email protected]>
+
+ * lib/jit_mips-cpu.c: Correct typo in the jit_bmsr
+ implementation that was using the wrong test result
+ register.
+
2014-07-28 Paulo Andrade <[email protected]>
* lib/jit_memory.c: Do not call free on NULL pointers.
diff --git a/lib/jit_mips-cpu.c b/lib/jit_mips-cpu.c
index f7f356c..aa48b64 100644
--- a/lib/jit_mips-cpu.c
+++ b/lib/jit_mips-cpu.c
@@ -1659,7 +1659,7 @@ _htonr(jit_state_t *_jit, jit_int32_t r0, jit_int32_t r1)
/* FIXME rewrite in a more sane way, but unlikely to be used
* in near time... */
# if __WORDSIZE == 64
-# error htonr only implemented for 32 bit
+# error htonr only implemented for 64 bit
# endif
rg0 = jit_get_reg(jit_class_gpr);
rg1 = jit_get_reg(jit_class_gpr);
@@ -2754,7 +2754,7 @@ _bmsr(jit_state_t *_jit, jit_word_t i0, jit_int32_t r0,
jit_int32_t r1)
jit_word_t w;
jit_int32_t t0;
t0 = jit_get_reg(jit_class_gpr);
- AND(rn(r0), r0, r1);
+ AND(rn(t0), r0, r1);
w = _jit->pc.w;
BNE(_ZERO_REGNO, rn(t0), ((i0 - w) >> 2) - 1);
NOP(1);