qbe

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

commit 89039dcac1300f211e5eba6577faae5353e35818
parent 88d9573b7670d26ffb7c6ae666b73d0aa0f1b4db
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Sun,  9 Aug 2015 16:49:11 -0400

movsb is not movsbl without suffix...

Diffstat:
Mlisc/emit.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisc/emit.c b/lisc/emit.c @@ -201,7 +201,11 @@ eins(Ins i, Fn *fn, FILE *f) case OLoadus: case OLoadsb: case OLoadub: - fprintf(f, "\t%s ", otoa[i.op]); + fprintf(f, "\t%s", otoa[i.op]); + if (BASE(i.to.val) == i.to.val) + fprintf(f, "q "); + else + fprintf(f, "l "); emem(i.arg[0], fn, f); fprintf(f, ", "); eref(i.to, fn, f);