ref: 18413bd79d3df58176c3897d2877148913b448e7
parent: 582cdcfdc679e1df697c12e73dae7323ab2255b3
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Feb 7 13:42:10 EST 2015
Put the rhs of the multiplication operator into a reg. This needs to happen to avoid errors in code gen.
--- a/6/isel.c
+++ b/6/isel.c
@@ -544,7 +544,7 @@
case Omul:
if (size(args[0]) == 1) {
a = selexpr(s, args[0]);
- b = selexpr(s, args[1]);
+ b = inr(s, selexpr(s, args[1]));
c = locphysreg(Ral);
r = locreg(a->mode);