From 5f875c3261728537c0bacae50f76734547f43508 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 3 Nov 2015 17:01:12 -0500 Subject: update minic to the new IR --- minic/minic.y | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'minic/minic.y') diff --git a/minic/minic.y b/minic/minic.y index ab95604..82b0df0 100644 --- a/minic/minic.y +++ b/minic/minic.y @@ -192,7 +192,7 @@ psymb(Symb s) void sext(Symb *s) { - fprintf(of, "\t%%t%d =l sext ", tmp); + fprintf(of, "\t%%t%d =l extsw ", tmp); psymb(*s); fprintf(of, "\n"); s->t = Tmp; @@ -257,9 +257,12 @@ Scale: void load(Symb d, Symb s) { + char t; + fprintf(of, "\t"); psymb(d); - fprintf(of, " =%c load ", irtyp(d.ctyp)); + t = irtyp(d.ctyp); + fprintf(of, " =%c load%c ", t, t); psymb(s); fprintf(of, "\n"); } -- cgit 1.4.1