shithub: mc

Download patch

ref: 647346ba80b366580d53733a14d05baffe0dfa3b
parent: 0116ef24cb193165de85d3a707d4dbd64ba1b60f
author: Ori Bernstein <[email protected]>
date: Sat Jul 28 12:27:19 EDT 2012

Fix left shifts.

    Use the correct shift value, instead of hard-coding the
    register. We often want to shift by constant values.

--- a/8/isel.c
+++ b/8/isel.c
@@ -494,7 +494,7 @@
                 else
                     g(s, Ishr, d, a, NULL);
             } else {
-                g(s, Ishl, cl, a, NULL);
+                g(s, Ishl, d, a, NULL);
             }
             r = a;
             break;