ref: b6b38357b4e631ba81d71e372dadc5e9511f4f78
parent: 4e83633b055cf9d8b411994d3ceb27d6341c34cf
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Sep 18 03:27:55 EDT 2014
Remove duplicated case in emit() the code of this two cases was identicall, so it is better to use a fall through instead.
--- a/cc2/cgen.c
+++ b/cc2/cgen.c
@@ -66,7 +66,7 @@
imm = va_arg(va, int);
printf("\t%s\t%s,%d\n", opnames[op], regnames[reg1], imm);
break;
- case LDFX:
+ case ADDX: case ADCX: case LDFX:
reg1 = va_arg(va, int);
reg2 = va_arg(va, int);
off = va_arg(va, int);
@@ -79,13 +79,6 @@
reg2 = va_arg(va, int);
printf("\t%s\t(%s%+d),%s\n",
opnames[op], regnames[reg1], off, regnames[reg2]);
- break;
- case ADDX: case ADCX:
- reg1 = va_arg(va, int);
- reg2 = va_arg(va, int);
- off = va_arg(va, int);
- printf("\t%s\t%s,(%s%+d)\n",
- opnames[op], regnames[reg1], regnames[reg2], off);
break;
case ADDR:
label = va_arg(va, char *);