wingo pushed a commit to branch lightning
in repository guile.
commit b00c750830908cdd06df5146e1254d2792c2e2ea
Author: pcpa <[email protected]>
Date: Thu May 5 11:19:45 2016 -0300
Correct wrong movr simplification
---
ChangeLog | 4 ++++
lib/lightning.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 82779a1..8c4b46e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-05-05 Paulo Andrade <[email protected]>
+
+ * lib/lightning.c: Correct wrong movr simplification.
+
2015-11-30 Paulo Andrade <[email protected]>
* doc/body.texi: Change documentation to no longer say
diff --git a/lib/lightning.c b/lib/lightning.c
index 9436422..e8db723 100644
--- a/lib/lightning.c
+++ b/lib/lightning.c
@@ -2822,7 +2822,7 @@ _simplify_movr(jit_state_t *_jit, jit_node_t *prev,
jit_node_t *node,
else {
value->kind = jit_kind_register;
value->base.q.l = right;
- value->base.q.h = _jitc->gen[regno];
+ value->base.q.h = _jitc->gen[right];
}
++_jitc->gen[regno];