summaryrefslogtreecommitdiff
path: root/6/isel.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-02-07 18:42:10 -0800
committerOri Bernstein <ori@eigenstate.org>2015-02-07 18:42:10 -0800
commit18413bd79d3df58176c3897d2877148913b448e7 (patch)
treeb77e8cb3bb963b6492ae5714e214faa7213b2d7a /6/isel.c
parent582cdcfdc679e1df697c12e73dae7323ab2255b3 (diff)
downloadmc-18413bd79d3df58176c3897d2877148913b448e7.tar.gz
Put the rhs of the multiplication operator into a reg.
This needs to happen to avoid errors in code gen.
Diffstat (limited to '6/isel.c')
-rw-r--r--6/isel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/isel.c b/6/isel.c
index ec29ce4..01979d8 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -544,7 +544,7 @@ Loc *selexpr(Isel *s, Node *n)
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);