shithub: mc

Download patch

ref: b53996849e0119bbd9572c220e31f2dd86834738
parent: de2876e46f5e7534cc986b351eea85abd788d425
author: Ori Bernstein <[email protected]>
date: Mon Jul 23 20:00:58 EDT 2012

Don't emit 'b'-suffixed mov instructions to load eax

--- a/8/isel.c
+++ b/8/isel.c
@@ -740,7 +740,7 @@
     eax = locphysreg(Reax);
     if (s->ret) {
         ret = loc(s, s->ret);
-        g(s, Imov, ret, eax, NULL);
+        movz(s, ret, eax);
     }
     g(s, Imov, ebp, esp, NULL);
     g(s, Ipop, ebp, NULL);