diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-04 14:55:28 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-04 15:44:43 -0400 |
commit | 7b3f0f8424155d4213cc8ad399fb41a4e4d64333 (patch) | |
tree | 8b9a22fc34870716d8730d564583a13e8d8037fa /rega.c | |
parent | 74562a93debff6954f16a4c3434efa69d37c954b (diff) | |
download | roux-7b3f0f8424155d4213cc8ad399fb41a4e4d64333.tar.gz |
fat il!
Diffstat (limited to 'rega.c')
-rw-r--r-- | rega.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rega.c b/rega.c index 23f078c..927e5aa 100644 --- a/rega.c +++ b/rega.c @@ -365,7 +365,7 @@ doblk(Blk *b, RMap *cur) if (rtype(b->jmp.arg) == RTmp) b->jmp.arg = ralloc(cur, b->jmp.arg.val); - else if (rtype(b->jmp.arg) == RACall) { + else if (rtype(b->jmp.arg) == RCall) { /* add return registers */ rs = retregs(b->jmp.arg, 0); for (r=0; rs; rs/=2, r++) @@ -404,8 +404,8 @@ doblk(Blk *b, RMap *cur) } for (x=0, nr=0; x<2; x++) switch (rtype(i->arg[x])) { - case RAMem: - m = &mem[i->arg[x].val & AMask]; + case RMem: + m = &mem[i->arg[x].val]; if (rtype(m->base) == RTmp) insert(&m->base, ra, nr++); if (rtype(m->index) == RTmp) |