[hackers] [scc] [cc2-qbe] fix unary and binary operators generation || Quentin Rameau
commit a5a233366a4cbbf7cf9d4c02f7bcc7d022349563
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Tue Jun 7 16:32:22 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Jun 7 16:34:26 2016 +0200
[cc2-qbe] fix unary and binary operators generation
diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c
index c38821f..abf096d 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -384,7 +384,7 @@ binary(void)
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
_AT_@ -406,7 +406,7 @@ unary(void)
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
Received on Tue Jun 07 2016 - 16:35:15 CEST
This archive was generated by hypermail 2.3.0
: Tue Jun 07 2016 - 16:36:18 CEST