qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 9c29630dbf64dc8768483a2482e63929ea08f5c3
parent 10ef1c132b05593236fc64432f3b9d9849aa5177
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Sun, 25 Oct 2015 14:27:44 -0400

small fix in memory refs emission

Diffstat:
Mlisc/emit.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisc/emit.c b/lisc/emit.c @@ -128,6 +128,8 @@ Next: } if (m->offset.type != CUndef) emitcon(&m->offset, f); + if (req(m->base, R) && req(m->index, R)) + break; fputc('(', f); if (!req(m->base, R)) fprintf(f, "%%%s", rsub[m->base.val][SLong]);