summary refs log tree commit diff
path: root/minic/minic.y
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-03 17:01:12 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-03 17:01:12 -0500
commit5f875c3261728537c0bacae50f76734547f43508 (patch)
tree4858dc17080b7881ce9eb744a5b086da0ca476f1 /minic/minic.y
parent8ae9f786cbc1173e2530cf86b222549ac0106670 (diff)
downloadroux-5f875c3261728537c0bacae50f76734547f43508.tar.gz
update minic to the new IR
Diffstat (limited to 'minic/minic.y')
-rw-r--r--minic/minic.y7
1 files changed, 5 insertions, 2 deletions
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");
 }