ref: e7db091c25a7798829aa87e07b7e8a860b60ed3d
parent: 98ac3b3a041e1d980834ae6077fc51c191187de2
author: Quentin Rameau <[email protected]>
date: Tue Jun 7 12:32:22 EDT 2016
[cc2-qbe] fix unary and binary operators generation
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
@@ -384,7 +384,7 @@
strcpy(to, addr2txt(&pc->to));
strcpy(from1, addr2txt(&pc->from1));
strcpy(from2, addr2txt(&pc->from2));
- printf("\t%s %c=\t%s\t%s,%s\n", to, p->letter, p->txt, from1, from2);
+ printf("\t%s =%c\t%s\t%s,%s\n", to, p->letter, p->txt, from1, from2);
}
static void
@@ -406,7 +406,7 @@
strcpy(to, addr2txt(&pc->to));
strcpy(from, addr2txt(&pc->from1));
- printf("\t%s %c=\t%s\t%s\n", to, p->letter, p->txt, from);
+ printf("\t%s =%c\t%s\t%s\n", to, p->letter, p->txt, from);
}
static void