From: bernhardheld Date: Thu, 23 Jan 2003 10:39:12 +0000 (+0000) Subject: * src/mcs51/peeph.def: better assembler identation by Frieder X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c0a4bcb6fbc866967eafb49d93e8c56716247548;p=fw%2Fsdcc * src/mcs51/peeph.def: better assembler identation by Frieder * src/mcs51/gen.c: better assembler identation by Frieder git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2168 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index ef73d2b4..f001cf81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-01-24 Bernhard Held + + * src/mcs51/peeph.def: better assembler identation by Frieder + * src/mcs51/gen.c: better assembler identation by Frieder + 2003-01-22 Bernhard Held * as/z80/string.h: removed for gcc 3.2 diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index 9bfc223a..0d8b03c3 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -1213,7 +1213,7 @@ genNotFloat (operand * op, operand * res) char *l; symbol *tlbl; - D(emitcode (";", "genNotFloat")); + D(emitcode ("; genNotFloat","")); /* we will put 127 in the first byte of the result */ @@ -1343,7 +1343,7 @@ genNot (iCode * ic) symbol *tlbl; sym_link *optype = operandType (IC_LEFT (ic)); - D(emitcode (";", "genNot")); + D(emitcode ("; genNot","")); /* assign asmOps to operand & result */ aopOp (IC_LEFT (ic), ic, FALSE); @@ -1389,7 +1389,7 @@ genCpl (iCode * ic) int size; symbol *tlbl; - D(emitcode (";", "genCpl")); + D(emitcode ("; genCpl","")); /* assign asmOps to operand & result */ aopOp (IC_LEFT (ic), ic, FALSE); @@ -1436,7 +1436,7 @@ genUminusFloat (operand * op, operand * result) int size, offset = 0; char *l; - D(emitcode (";", "genUminusFloat")); + D(emitcode ("; genUminusFloat","")); /* for this we just need to flip the first it then copy the rest in place */ @@ -1467,7 +1467,7 @@ genUminus (iCode * ic) sym_link *optype, *rtype; - D(emitcode (";", "genUminus")); + D(emitcode ("; genUminus","")); /* assign asmops */ aopOp (IC_LEFT (ic), ic, FALSE); @@ -1689,7 +1689,7 @@ genXpush (iCode * ic) regs *r; int size, offset = 0; - D(emitcode (";", "genXpush")); + D(emitcode ("; genXpush","")); aopOp (IC_LEFT (ic), ic, FALSE); r = getFreePtr (ic, &aop, FALSE); @@ -1725,7 +1725,7 @@ genIpush (iCode * ic) int size, offset = 0; char *l; - D(emitcode (";", "genIpush")); + D(emitcode ("; genIpush","")); /* if this is not a parm push : ie. it is spill push and spill push is always done on the local stack */ @@ -1797,7 +1797,7 @@ genIpop (iCode * ic) { int size, offset; - D(emitcode (";", "genIpop")); + D(emitcode ("; genIpop","")); /* if the temp was not pushed then */ if (OP_SYMBOL (IC_LEFT (ic))->isspilt) @@ -1989,7 +1989,7 @@ genCall (iCode * ic) // bool restoreBank = FALSE; bool swapBanks = FALSE; - D(emitcode(";", "genCall")); + D(emitcode("; genCall","")); dtype = operandType (IC_LEFT (ic)); /* if send set is not empty the assign */ @@ -2089,7 +2089,7 @@ genPcall (iCode * ic) // bool restoreBank=FALSE; bool swapBanks = FALSE; - D(emitcode(";", "genPCall")); + D(emitcode("; genPCall","")); /* if caller saves & we have not saved then */ if (!ic->regsSaved) @@ -2751,7 +2751,7 @@ genRet (iCode * ic) { int size, offset = 0, pushed = 0; - D(emitcode (";", "genRet")); + D(emitcode ("; genRet","")); /* if we have no return value then just generate the "ret" */ @@ -2880,7 +2880,7 @@ genPlusIncr (iCode * ic) if ((icount = (unsigned int) floatFromVal (AOP (IC_RIGHT (ic))->aopu.aop_lit)) > 4) return FALSE; - D(emitcode (";", "genPlusIncr")); + D(emitcode ("; genPlusIncr","")); /* if increment 16 bits in register */ if (AOP_TYPE(IC_LEFT(ic)) == AOP_REG && @@ -3018,7 +3018,7 @@ outBitAcc (operand * result) static void genPlusBits (iCode * ic) { - D(emitcode (";", "genPlusBits")); + D(emitcode ("; genPlusBits","")); if (AOP_TYPE (IC_RESULT (ic)) == AOP_CRY) { @@ -3125,7 +3125,7 @@ genPlus (iCode * ic) /* special cases :- */ - D(emitcode (";", "genPlus")); + D(emitcode ("; genPlus","")); aopOp (IC_LEFT (ic), ic, FALSE); aopOp (IC_RIGHT (ic), ic, FALSE); @@ -3240,7 +3240,7 @@ genMinusDec (iCode * ic) if ((icount = (unsigned int) floatFromVal (AOP (IC_RIGHT (ic))->aopu.aop_lit)) > 4) return FALSE; - D(emitcode (";", "genMinusDec")); + D(emitcode ("; genMinusDec","")); /* if decrement 16 bits in register */ if (AOP_TYPE(IC_LEFT(ic)) == AOP_REG && @@ -3371,7 +3371,7 @@ genMinusBits (iCode * ic) { symbol *lbl = newiTempLabel (NULL); - D(emitcode (";", "genMinusBits")); + D(emitcode ("; genMinusBits","")); if (AOP_TYPE (IC_RESULT (ic)) == AOP_CRY) { @@ -3401,7 +3401,7 @@ genMinus (iCode * ic) { int size, offset = 0; - D(emitcode (";", "genMinus")); + D(emitcode ("; genMinus","")); aopOp (IC_LEFT (ic), ic, FALSE); aopOp (IC_RIGHT (ic), ic, FALSE); @@ -3498,7 +3498,7 @@ genMultbits (operand * left, operand * right, operand * result) { - D(emitcode (";", "genMultbits")); + D(emitcode ("; genMultbits","")); emitcode ("mov", "c,%s", AOP (left)->aopu.aop_dir); emitcode ("anl", "c,%s", AOP (right)->aopu.aop_dir); @@ -3518,7 +3518,7 @@ genMultOneByte (operand * left, symbol *lbl; int size=AOP_SIZE(result); - D(emitcode (";", "genMultOneByte")); + D(emitcode ("; genMultOneByte","")); if (size<1 || size>2) { // this should never happen @@ -3623,7 +3623,7 @@ genMult (iCode * ic) operand *right = IC_RIGHT (ic); operand *result = IC_RESULT (ic); - D(emitcode (";", "genMult")); + D(emitcode ("; genMult","")); /* assign the amsops */ aopOp (left, ic, FALSE); @@ -3673,7 +3673,7 @@ genDivbits (operand * left, char *l; - D(emitcode (";", "genDivbits")); + D(emitcode ("; genDivbits","")); /* the result must be bit */ emitcode ("mov", "b,%s", aopGet (AOP (right), 0, FALSE, FALSE)); @@ -3699,7 +3699,7 @@ genDivOneByte (operand * left, symbol *lbl; int size, offset; - D(emitcode (";", "genDivOneByte")); + D(emitcode ("; genDivOneByte","")); size = AOP_SIZE (result) - 1; offset = 1; @@ -3784,7 +3784,7 @@ genDiv (iCode * ic) operand *right = IC_RIGHT (ic); operand *result = IC_RESULT (ic); - D(emitcode (";", "genDiv")); + D(emitcode ("; genDiv","")); /* assign the amsops */ aopOp (left, ic, FALSE); @@ -3827,7 +3827,7 @@ genModbits (operand * left, char *l; - D(emitcode (";", "genModbits")); + D(emitcode ("; genModbits","")); /* the result must be bit */ emitcode ("mov", "b,%s", aopGet (AOP (right), 0, FALSE, FALSE)); @@ -3853,7 +3853,7 @@ genModOneByte (operand * left, char *l; symbol *lbl; - D(emitcode (";", "genModOneByte")); + D(emitcode ("; genModOneByte","")); /* signed or unsigned */ if (SPEC_USIGN (opetype)) @@ -3928,7 +3928,7 @@ genMod (iCode * ic) operand *right = IC_RIGHT (ic); operand *result = IC_RESULT (ic); - D(emitcode (";", "genMod")); + D(emitcode ("; genMod","")); /* assign the amsops */ aopOp (left, ic, FALSE); @@ -3971,7 +3971,7 @@ genIfxJump (iCode * ic, char *jval) symbol *tlbl = newiTempLabel (NULL); char *inst; - D(emitcode (";", "genIfxJump")); + D(emitcode ("; genIfxJump","")); /* if true label then we jump if condition supplied is true */ @@ -4009,7 +4009,7 @@ genCmp (operand * left, operand * right, int size, offset = 0; unsigned long lit = 0L; - D(emitcode (";", "genCmp")); + D(emitcode ("; genCmp","")); /* if left & right are bit variables */ if (AOP_TYPE (left) == AOP_CRY && @@ -4119,7 +4119,7 @@ genCmpGt (iCode * ic, iCode * ifx) sym_link *letype, *retype; int sign; - D(emitcode (";", "genCmpGt")); + D(emitcode ("; genCmpGt","")); left = IC_LEFT (ic); right = IC_RIGHT (ic); @@ -4148,7 +4148,7 @@ genCmpLt (iCode * ic, iCode * ifx) sym_link *letype, *retype; int sign; - D(emitcode (";", "genCmpLt")); + D(emitcode ("; genCmpLt","")); left = IC_LEFT (ic); right = IC_RIGHT (ic); @@ -4265,7 +4265,7 @@ genCmpEq (iCode * ic, iCode * ifx) { operand *left, *right, *result; - D(emitcode (";", "genCmpEq")); + D(emitcode ("; genCmpEq","")); aopOp ((left = IC_LEFT (ic)), ic, FALSE); aopOp ((right = IC_RIGHT (ic)), ic, FALSE); @@ -4492,7 +4492,7 @@ genAndOp (iCode * ic) operand *left, *right, *result; symbol *tlbl; - D(emitcode (";", "genAndOp")); + D(emitcode ("; genAndOp","")); /* note here that && operations that are in an if statement are taken away by backPatchLabels @@ -4534,7 +4534,7 @@ genOrOp (iCode * ic) operand *left, *right, *result; symbol *tlbl; - D(emitcode (";", "genOrOp")); + D(emitcode ("; genOrOp","")); /* note here that || operations that are in an if statement are taken away by backPatchLabels @@ -4645,7 +4645,7 @@ genAnd (iCode * ic, iCode * ifx) int bytelit = 0; char buffer[10]; - D(emitcode (";", "genAnd")); + D(emitcode ("; genAnd","")); aopOp ((left = IC_LEFT (ic)), ic, FALSE); aopOp ((right = IC_RIGHT (ic)), ic, FALSE); @@ -4949,7 +4949,7 @@ genOr (iCode * ic, iCode * ifx) int size, offset = 0; unsigned long lit = 0L; - D(emitcode (";", "genOr")); + D(emitcode ("; genOr","")); aopOp ((left = IC_LEFT (ic)), ic, FALSE); aopOp ((right = IC_RIGHT (ic)), ic, FALSE); @@ -5218,7 +5218,7 @@ genXor (iCode * ic, iCode * ifx) int size, offset = 0; unsigned long lit = 0L; - D(emitcode (";", "genXor")); + D(emitcode ("; genXor","")); aopOp ((left = IC_LEFT (ic)), ic, FALSE); aopOp ((right = IC_RIGHT (ic)), ic, FALSE); @@ -5476,7 +5476,7 @@ genInline (iCode * ic) { char *buffer, *bp, *bp1; - D(emitcode (";", "genInline")); + D(emitcode ("; genInline","")); _G.inLine += (!options.asmpeep); @@ -5522,7 +5522,7 @@ genRRC (iCode * ic) int size, offset = 0; char *l; - D(emitcode (";", "genRRC")); + D(emitcode ("; genRRC","")); /* rotate right with carry */ left = IC_LEFT (ic); @@ -5572,7 +5572,7 @@ genRLC (iCode * ic) int size, offset = 0; char *l; - D(emitcode (";", "genRLC")); + D(emitcode ("; genRLC","")); /* rotate right with carry */ left = IC_LEFT (ic); @@ -5625,7 +5625,7 @@ genGetHbit (iCode * ic) { operand *left, *result; - D(emitcode (";", "genGetHbit")); + D(emitcode ("; genGetHbit","")); left = IC_LEFT (ic); result = IC_RESULT (ic); @@ -6233,7 +6233,7 @@ shiftRLeftOrResult (operand * left, int offl, static void genlshOne (operand * result, operand * left, int shCount) { - D(emitcode (";", "genlshOne")); + D(emitcode ("; genlshOne","")); shiftL1Left2Result (left, LSB, result, LSB, shCount); } @@ -6246,7 +6246,7 @@ genlshTwo (operand * result, operand * left, int shCount) { int size; - D(emitcode (";", "genlshTwo")); + D(emitcode ("; genlshTwo","")); size = getDataSize (result); @@ -6352,7 +6352,7 @@ genlshFour (operand * result, operand * left, int shCount) { int size; - D(emitcode (";", "genlshFour")); + D(emitcode ("; genlshFour","")); size = AOP_SIZE (result); @@ -6451,7 +6451,7 @@ genLeftShiftLiteral (operand * left, int shCount = (int) floatFromVal (AOP (right)->aopu.aop_lit); int size; - D(emitcode (";", "genLeftShiftLiteral")); + D(emitcode ("; genLeftShiftLiteral","")); freeAsmop (right, NULL, ic, TRUE); @@ -6513,7 +6513,7 @@ genLeftShift (iCode * ic) char *l; symbol *tlbl, *tlbl1; - D(emitcode (";", "genLeftShift")); + D(emitcode ("; genLeftShift","")); right = IC_RIGHT (ic); left = IC_LEFT (ic); @@ -6616,7 +6616,7 @@ static void genrshOne (operand * result, operand * left, int shCount, int sign) { - D(emitcode (";", "genrshOne")); + D(emitcode ("; genrshOne","")); shiftR1Left2Result (left, LSB, result, LSB, shCount, sign); } @@ -6628,7 +6628,7 @@ static void genrshTwo (operand * result, operand * left, int shCount, int sign) { - D(emitcode (";", "genrshTwo")); + D(emitcode ("; genrshTwo","")); /* if shCount >= 8 */ if (shCount >= 8) @@ -6720,7 +6720,7 @@ static void genrshFour (operand * result, operand * left, int shCount, int sign) { - D(emitcode (";", "genrshFour")); + D(emitcode ("; genrshFour","")); /* if shifting more that 3 bytes */ if (shCount >= 24) @@ -6795,7 +6795,7 @@ genRightShiftLiteral (operand * left, int shCount = (int) floatFromVal (AOP (right)->aopu.aop_lit); int size; - D(emitcode (";", "genRightShiftLiteral")); + D(emitcode ("; genRightShiftLiteral","")); freeAsmop (right, NULL, ic, TRUE); @@ -6860,7 +6860,7 @@ genSignedRightShift (iCode * ic) char *l; symbol *tlbl, *tlbl1; - D(emitcode (";", "genSignedRightShift")); + D(emitcode ("; genSignedRightShift","")); /* we do it the hard way put the shift count in b and loop thru preserving the sign */ @@ -6968,7 +6968,7 @@ genRightShift (iCode * ic) char *l; symbol *tlbl, *tlbl1; - D(emitcode (";", "genRightShift")); + D(emitcode ("; genRightShift","")); /* if signed then we do it the hard way preserve the sign bit moving it inwards */ @@ -7089,7 +7089,7 @@ genUnpackBits (operand * result, char *rname, int ptype) int offset = 0; int rsize; - D(emitcode (";", "genUnpackBits")); + D(emitcode ("; genUnpackBits","")); etype = getSpec (operandType (result)); rsize = getSize (operandType (result)); @@ -7213,7 +7213,7 @@ genDataPointerGet (operand * left, char buffer[256]; int size, offset = 0; - D(emitcode (";", "genDataPointerGet")); + D(emitcode ("; genDataPointerGet","")); aopOp (result, ic, TRUE); @@ -7249,7 +7249,7 @@ genNearPointerGet (operand * left, sym_link *ltype = operandType (left); char buffer[80]; - D(emitcode (";", "genNearPointerGet")); + D(emitcode ("; genNearPointerGet","")); rtype = operandType (result); retype = getSpec (rtype); @@ -7361,7 +7361,7 @@ genPagedPointerGet (operand * left, char *rname; sym_link *rtype, *retype; - D(emitcode (";", "genPagedPointerGet")); + D(emitcode ("; genPagedPointerGet","")); rtype = operandType (result); retype = getSpec (rtype); @@ -7449,7 +7449,7 @@ genFarPointerGet (operand * left, int size, offset; sym_link *retype = getSpec (operandType (result)); - D(emitcode (";", "genFarPointerGet")); + D(emitcode ("; genFarPointerGet","")); aopOp (left, ic, FALSE); @@ -7505,7 +7505,7 @@ genCodePointerGet (operand * left, int size, offset; sym_link *retype = getSpec (operandType (result)); - D(emitcode (";", "genCodePointerGet")); + D(emitcode ("; genCodePointerGet","")); aopOp (left, ic, FALSE); @@ -7562,7 +7562,7 @@ genGenPointerGet (operand * left, int size, offset; sym_link *retype = getSpec (operandType (result)); - D(emitcode (";", "genGenPointerGet")); + D(emitcode ("; genGenPointerGet","")); aopOp (left, ic, FALSE); @@ -7626,7 +7626,7 @@ genPointerGet (iCode * ic, iCode *pi) sym_link *type, *etype; int p_type; - D(emitcode (";", "genPointerGet")); + D(emitcode ("; genPointerGet","")); left = IC_LEFT (ic); result = IC_RESULT (ic); @@ -7694,7 +7694,7 @@ genPackBits (sym_link * etype, int blen, bstr; char *l; - D(emitcode (";", "genPackBits")); + D(emitcode ("; genPackBits","")); blen = SPEC_BLEN (etype); bstr = SPEC_BSTR (etype); @@ -7861,7 +7861,7 @@ genDataPointerSet (operand * right, int size, offset = 0; char *l, buffer[256]; - D(emitcode (";", "genDataPointerSet")); + D(emitcode ("; genDataPointerSet","")); aopOp (right, ic, FALSE); @@ -7896,7 +7896,7 @@ genNearPointerSet (operand * right, sym_link *retype, *letype; sym_link *ptype = operandType (result); - D(emitcode (";", "genNearPointerSet")); + D(emitcode ("; genNearPointerSet","")); retype = getSpec (operandType (right)); letype = getSpec (ptype); @@ -8023,7 +8023,7 @@ genPagedPointerSet (operand * right, char *rname, *l; sym_link *retype, *letype; - D(emitcode (";", "genPagedPointerSet")); + D(emitcode ("; genPagedPointerSet","")); retype = getSpec (operandType (right)); letype = getSpec (operandType (result)); @@ -8113,7 +8113,7 @@ genFarPointerSet (operand * right, sym_link *retype = getSpec (operandType (right)); sym_link *letype = getSpec (operandType (result)); - D(emitcode (";", "genFarPointerSet")); + D(emitcode ("; genFarPointerSet","")); aopOp (result, ic, FALSE); @@ -8170,7 +8170,7 @@ genGenPointerSet (operand * right, sym_link *retype = getSpec (operandType (right)); sym_link *letype = getSpec (operandType (result)); - D(emitcode (";", "genGenPointerSet")); + D(emitcode ("; genGenPointerSet","")); aopOp (result, ic, FALSE); @@ -8235,7 +8235,7 @@ genPointerSet (iCode * ic, iCode *pi) sym_link *type, *etype; int p_type; - D(emitcode (";", "genPointerSet")); + D(emitcode ("; genPointerSet","")); right = IC_RIGHT (ic); result = IC_RESULT (ic); @@ -8300,7 +8300,7 @@ genIfx (iCode * ic, iCode * popIc) operand *cond = IC_COND (ic); int isbit = 0; - D(emitcode (";", "genIfx")); + D(emitcode ("; genIfx","")); aopOp (cond, ic, FALSE); @@ -8337,7 +8337,7 @@ genAddrOf (iCode * ic) symbol *sym = OP_SYMBOL (IC_LEFT (ic)); int size, offset; - D(emitcode (";", "genAddrOf")); + D(emitcode ("; genAddrOf","")); aopOp (IC_RESULT (ic), ic, FALSE); @@ -8404,7 +8404,7 @@ genFarFarAssign (operand * result, operand * right, iCode * ic) int offset = 0; char *l; - D(emitcode (";", "genFarFarAssign")); + D(emitcode ("; genFarFarAssign","")); /* first push the right side on to the stack */ while (size--) @@ -8437,7 +8437,7 @@ genAssign (iCode * ic) int size, offset; unsigned long lit = 0L; - D(emitcode(";","genAssign")); + D(emitcode("; genAssign","")); result = IC_RESULT (ic); right = IC_RIGHT (ic); @@ -8541,7 +8541,7 @@ genJumpTab (iCode * ic) symbol *jtab; char *l; - D(emitcode (";", "genJumpTab")); + D(emitcode ("; genJumpTab","")); aopOp (IC_JTCOND (ic), ic, FALSE); /* get the condition into accumulator */ @@ -8575,7 +8575,7 @@ genCast (iCode * ic) operand *right = IC_RIGHT (ic); int size, offset; - D(emitcode(";", "genCast")); + D(emitcode("; genCast","")); /* if they are equivalent then do nothing */ if (operandsEqu (IC_RESULT (ic), IC_RIGHT (ic))) @@ -8750,7 +8750,7 @@ genDjnz (iCode * ic, iCode * ifx) if (!ifx) return 0; - D(emitcode (";", "genDjnz")); + D(emitcode ("; genDjnz","")); /* if the if condition has a false label then we cannot save */ @@ -8830,7 +8830,7 @@ genReceive (iCode * ic) { int size = getSize (operandType (IC_RESULT (ic))); int offset = 0; - D(emitcode (";", "genReceive")); + D(emitcode ("; genReceive","")); if (ic->argreg == 1) { /* first parameter */ if (isOperandInFarSpace (IC_RESULT (ic)) && @@ -8913,7 +8913,7 @@ gen51Code (iCode * lic) ic->level, ic->block); _G.debugLine = 0; } - emitcode ("", ";\t%s:%d: %s", ic->filename, ic->lineno, + emitcode ("", "; %s:%d: %s", ic->filename, ic->lineno, printCLine(ic->filename, ic->lineno)); cln = ic->lineno; } diff --git a/src/mcs51/peeph.def b/src/mcs51/peeph.def index 2a35344d..447f7249 100644 --- a/src/mcs51/peeph.def +++ b/src/mcs51/peeph.def @@ -2,7 +2,7 @@ // pop %1 // push %1 //} by { -// ; Peephole 1 removed pop %1 push %1 (not push pop) +// ; Peephole 1 removed pop %1 push %1 (not push pop) //} //replace restart { @@ -10,7 +10,7 @@ // mov %2,%3 // push %1 //} by { -// ; Peephole 2 removed pop %1 push %1 (not push pop) +// ; Peephole 2 removed pop %1 push %1 (not push pop) // mov %2,%3 //} @@ -21,7 +21,7 @@ replace restart { xch a,%1 xch a,%1 } by { - ; Peephole 2.a removed redundant xch xch + ; Peephole 2.a removed redundant xch xch } replace restart { @@ -29,7 +29,7 @@ replace restart { mov %1,#0x00 mov a,#0x00 } by { - ; Peephole 3.a changed mov to clr + ; Peephole 3.a changed mov to clr clr a mov %1,a } @@ -39,7 +39,7 @@ replace restart { mov %1,#0x00 clr a } by { - ; Peephole 3.b changed mov to clr + ; Peephole 3.b changed mov to clr clr a mov %1,a } @@ -50,7 +50,7 @@ replace restart { mov %2,#0x00 mov a,%3 } by { - ; Peephole 3.c changed mov to clr + ; Peephole 3.c changed mov to clr clr a mov %1,a mov %2,a @@ -65,7 +65,7 @@ replace { mov a,%1 movx @dptr,a } by { - ; Peephole 100 removed redundant mov + ; Peephole 100 removed redundant mov mov %1,a mov dptr,#%2 movx @dptr,a @@ -73,7 +73,7 @@ replace { replace { mov a,acc } by { - ; Peephole 100.a removed redundant mov + ; Peephole 100.a removed redundant mov } replace { @@ -83,7 +83,7 @@ replace { mov a,%1 movx @dptr,a } by { - ; Peephole 101 removed redundant mov + ; Peephole 101 removed redundant mov mov a,%1 movx @dptr,a inc dptr @@ -101,7 +101,7 @@ replace { mov sp,bp pop bp } by { - ; Peephole 102 removed redundant mov + ; Peephole 102 removed redundant mov mov dpl,%2 ljmp %3 %4: @@ -123,7 +123,7 @@ replace { mov sp,bp pop bp } by { - ; Peephole 103 removed redundant mov + ; Peephole 103 removed redundant mov mov dpl,%2 ljmp %3 %4: @@ -140,7 +140,7 @@ replace { add a,#0x01 mov r%1,a } by { - ; Peephole 104 optimized increment (acc not set to r%1, flags undefined) + ; Peephole 104 optimized increment (acc not set to r%1, flags undefined) mov r%1,bp inc r%1 } @@ -149,7 +149,7 @@ replace { mov %1,a mov a,%1 } by { - ; Peephole 105 removed redundant mov + ; Peephole 105 removed redundant mov mov %1,a } @@ -158,7 +158,7 @@ replace { clr c mov a,%1 } by { - ; Peephole 106 removed redundant mov + ; Peephole 106 removed redundant mov mov %1,a clr c } @@ -167,7 +167,7 @@ replace { ljmp %1 %1: } by { - ; Peephole 107 removed redundant ljmp + ; Peephole 107 removed redundant ljmp %1: } @@ -176,7 +176,7 @@ replace { ljmp %5 %1: } by { - ; Peephole 108 removed ljmp by inverse jump logic + ; Peephole 108 removed ljmp by inverse jump logic jnc %5 %1: } if labelInRange @@ -186,7 +186,7 @@ replace { ljmp %5 %1: } by { - ; Peephole 109 removed ljmp by inverse jump logic + ; Peephole 109 removed ljmp by inverse jump logic jnz %5 %1: } if labelInRange @@ -196,7 +196,7 @@ replace { ljmp %5 %1: } by { - ; Peephole 110 removed ljmp by inverse jump logic + ; Peephole 110 removed ljmp by inverse jump logic jz %5 %1: } if labelInRange @@ -206,7 +206,7 @@ replace { ljmp %5 %2: } by { - ; Peephole 111 removed ljmp by inverse jump logic + ; Peephole 111 removed ljmp by inverse jump logic jnb %1,%5 %2: } if labelInRange @@ -216,7 +216,7 @@ replace { ljmp %5 %2: } by { - ; Peephole 112 removed ljmp by inverse jump logic + ; Peephole 112 removed ljmp by inverse jump logic jb %1,%5 %2: } if labelInRange @@ -225,7 +225,7 @@ replace { ljmp %5 %1: } by { - ; Peephole 132 changed ljmp to sjmp + ; Peephole 132 changed ljmp to sjmp sjmp %5 %1: } if labelInRange @@ -239,7 +239,7 @@ replace { rrc a mov %4,c } by { - ; Peephole 113 optimized misc sequence + ; Peephole 113 optimized misc sequence clr %4 cjne %1,%2,%3 setb %4 @@ -255,7 +255,7 @@ replace { rrc a mov %4,c } by { - ; Peephole 114 optimized misc sequence + ; Peephole 114 optimized misc sequence clr %4 cjne %1,%2,%3 cjne %10,%11,%3 @@ -270,7 +270,7 @@ replace { %3: jnz %4 } by { - ; Peephole 115 jump optimization + ; Peephole 115 jump optimization cjne %1,%2,%3 sjmp %4 %3: @@ -284,7 +284,7 @@ replace { %3: jnz %4 } by { - ; Peephole 116 jump optimization + ; Peephole 116 jump optimization cjne %1,%2,%3 cjne %9,%10,%3 sjmp %4 @@ -300,7 +300,7 @@ replace { %3: jnz %4 } by { - ; Peephole 117 jump optimization + ; Peephole 117 jump optimization cjne %1,%2,%3 cjne %9,%10,%3 cjne %11,%12,%3 @@ -318,7 +318,7 @@ replace { %3: jnz %4 } by { - ; Peephole 118 jump optimization + ; Peephole 118 jump optimization cjne %1,%2,%3 cjne %9,%10,%3 cjne %11,%12,%3 @@ -334,7 +334,7 @@ replace { %3: jnz %4 } by { - ; Peephole 119 jump optimization + ; Peephole 119 jump optimization cjne %1,%2,%4 %3: } if labelRefCount %3 1 @@ -347,7 +347,7 @@ replace { %3: jnz %4 } by { - ; Peephole 120 jump optimization + ; Peephole 120 jump optimization cjne %1,%2,%4 cjne %10,%11,%4 %3: @@ -362,7 +362,7 @@ replace { %3: jnz %4 } by { - ; Peephole 121 jump optimization + ; Peephole 121 jump optimization cjne %1,%2,%4 cjne %10,%11,%4 cjne %12,%13,%4 @@ -379,7 +379,7 @@ replace { %3: jnz %4 } by { - ; Peephole 122 jump optimization + ; Peephole 122 jump optimization cjne %1,%2,%4 cjne %10,%11,%4 cjne %12,%13,%4 @@ -394,7 +394,7 @@ replace { %3: jz %4 } by { - ; Peephole 123 jump optimization + ; Peephole 123 jump optimization cjne %1,%2,%3 smp %4 %3: @@ -408,7 +408,7 @@ replace { %3: jz %4 } by { - ; Peephole 124 jump optimization + ; Peephole 124 jump optimization cjne %1,%2,%3 cjne %10,%11,%3 sjmp %4 @@ -424,7 +424,7 @@ replace { %3: jz %4 } by { - ; Peephole 125 jump optimization + ; Peephole 125 jump optimization cjne %1,%2,%3 cjne %10,%11,%3 cjne %12,%13,%3 @@ -442,7 +442,7 @@ replace { %3: jz %4 } by { - ; Peephole 126 jump optimization + ; Peephole 126 jump optimization cjne %1,%2,%3 cjne %10,%11,%3 cjne %12,%13,%3 @@ -462,7 +462,7 @@ replace { pop psw ret } by { - ; Peephole 127 removed misc sequence + ; Peephole 127 removed misc sequence ret } if labelRefCount %3 0 @@ -471,7 +471,7 @@ replace { rlc a jz %1 } by { - ; Peephole 128 jump optimization + ; Peephole 128 jump optimization jnc %1 } @@ -480,14 +480,14 @@ replace { rlc a jnz %1 } by { - ; Peephole 129 jump optimization + ; Peephole 129 jump optimization jc %1 } replace { mov r%1,@r%2 } by { - ; Peephole 130 changed target address mode r%1 to ar%1 + ; Peephole 130 changed target address mode r%1 to ar%1 mov ar%1,@r%2 } @@ -497,7 +497,7 @@ replace { mov %2,a mov %1,%2 } by { - ; Peephole 131 optimized decrement (not caring for c) + ; Peephole 131 optimized decrement (not caring for c) dec %1 mov %2,%1 } @@ -509,7 +509,7 @@ replace { mov r%4,%2 mov @r%4,ar%3 } by { - ; Peephole 133 removed redundant moves + ; Peephole 133 removed redundant moves mov r%1,%2 inc @r%1 mov ar%3,@r%1 @@ -522,7 +522,7 @@ replace { mov r%4,%2 mov @r%4,ar%3 } by { - ; Peephole 134 removed redundant moves + ; Peephole 134 removed redundant moves mov r%1,%2 dec @r%1 mov ar%3,@r%1 @@ -533,7 +533,7 @@ replace { mov a,r%2 orl a,r%1 } by { - ; Peephole 135 removed redundant mov + ; Peephole 135 removed redundant mov mov r%1,a orl a,r%2 } @@ -544,7 +544,7 @@ replace { mov dph,%3 mov a,%1 } by { - ; Peephole 136 removed redundant moves + ; Peephole 136 removed redundant moves mov %1,a mov dpl,%2 mov dph,%3 @@ -560,7 +560,7 @@ replace { // mov a,b // jz %5 //} by { -// ; Peephole 137 optimized misc jump sequence +// ; Peephole 137 optimized misc jump sequence // mov a,%1 // cjne %2,%3,%5 //%4: @@ -575,7 +575,7 @@ replace { // mov a,b // jnz %5 //} by { -// ; Peephole 138 optimized misc jump sequence +// ; Peephole 138 optimized misc jump sequence // mov a,%1 // cjne %2,%3,%4 // sjmp %5 @@ -587,7 +587,7 @@ replace { anl ar%1,%2 mov a,r%1 } by { - ; Peephole 139 removed redundant mov + ; Peephole 139 removed redundant mov anl a,%2 mov r%1,a } @@ -597,7 +597,7 @@ replace { orl ar%1,%2 mov a,r%1 } by { - ; Peephole 140 removed redundant mov + ; Peephole 140 removed redundant mov orl a,%2 mov r%1,a } @@ -606,7 +606,7 @@ replace { xrl ar%1,%2 mov a,r%1 } by { - ; Peephole 141 removed redundant mov + ; Peephole 141 removed redundant mov xrl a,%2 mov r%1,a } @@ -616,7 +616,7 @@ replace { mov r%2,ar%1 mov ar%1,@r%2 } by { - ; Peephole 142 removed redundant moves + ; Peephole 142 removed redundant moves mov r%2,a mov ar%1,@r%2 } @@ -625,7 +625,7 @@ replace { rlc a mov acc.0,c } by { - ; Peephole 143 converted rlc to rl + ; Peephole 143 converted rlc to rl rl a } @@ -633,7 +633,7 @@ replace { rrc a mov acc.7,c } by { - ; Peephole 144 converted rrc to rc + ; Peephole 144 converted rrc to rc rr a } @@ -641,7 +641,7 @@ replace { clr c addc a,%1 } by { - ; Peephole 145 changed to add without carry + ; Peephole 145 changed to add without carry add a,%1 } @@ -650,7 +650,7 @@ replace { mov a,%1 addc a,%2 } by { - ; Peephole 146 changed to add without carry + ; Peephole 146 changed to add without carry mov a,%1 add a,%2 } @@ -658,21 +658,21 @@ replace { replace { orl r%1,a } by { - ; Peephole 147 changed target address mode r%1 to ar%1 + ; Peephole 147 changed target address mode r%1 to ar%1 orl ar%1,a } replace { anl r%1,a } by { - ; Peephole 148 changed target address mode r%1 to ar%1 + ; Peephole 148 changed target address mode r%1 to ar%1 anl ar%1,a } replace { xrl r%1,a } by { - ; Peephole 149 changed target address mode r%1 to ar%1 + ; Peephole 149 changed target address mode r%1 to ar%1 xrl ar%1,a } @@ -682,7 +682,7 @@ replace { %9: ret } by { - ; Peephole 150 removed misc moves via dpl before return + ; Peephole 150 removed misc moves via dpl before return %9: ret } @@ -695,7 +695,7 @@ replace { %9: ret } by { - ; Peephole 151 removed misc moves via dph, dpl before return + ; Peephole 151 removed misc moves via dph, dpl before return %9: ret } @@ -707,7 +707,7 @@ replace { %9: ret } by { - ; Peephole 152 removed misc moves via dph, dpl before return + ; Peephole 152 removed misc moves via dph, dpl before return %9: ret } @@ -722,7 +722,7 @@ replace { %9: ret } by { - ; Peephole 153 removed misc moves via dph, dpl, b before return + ; Peephole 153 removed misc moves via dph, dpl, b before return %9: ret } @@ -735,7 +735,7 @@ replace { %9: ret } by { - ; Peephole 154 removed misc moves via dph, dpl, b before return + ; Peephole 154 removed misc moves via dph, dpl, b before return %9: ret } @@ -749,7 +749,7 @@ replace { %9: ret } by { - ; Peephole 155 removed misc moves via dph, dpl, b before return + ; Peephole 155 removed misc moves via dph, dpl, b before return %9: ret } @@ -766,7 +766,7 @@ replace { %9: ret } by { - ; Peephole 156 removed misc moves via dph, dpl, b, a before return + ; Peephole 156 removed misc moves via dph, dpl, b, a before return %9: ret } @@ -781,7 +781,7 @@ replace { %9: ret } by { - ; Peephole 157 removed misc moves via dph, dpl, b, a before return + ; Peephole 157 removed misc moves via dph, dpl, b, a before return %9: ret } @@ -794,7 +794,7 @@ replace { mov dpl,%1 %9: ret } by { - ; Peephole 158 removed misc moves via dph, dpl, b, a before return + ; Peephole 158 removed misc moves via dph, dpl, b, a before return %9: ret } @@ -802,7 +802,7 @@ replace { mov %1,#%2 xrl %1,#0x80 } by { - ; Peephole 159 avoided xrl during execution + ; Peephole 159 avoided xrl during execution mov %1,#(%2 ^ 0x80) } @@ -811,7 +811,7 @@ replace { sjmp %2 %1: } by { - ; Peephole 160 removed sjmp by inverse jump logic + ; Peephole 160 removed sjmp by inverse jump logic jc %2 %1:} @@ -820,7 +820,7 @@ replace { sjmp %2 %1: } by { - ; Peephole 161 removed sjmp by inverse jump logic + ; Peephole 161 removed sjmp by inverse jump logic jnc %2 %1:} @@ -829,7 +829,7 @@ replace { sjmp %2 %1: } by { - ; Peephole 162 removed sjmp by inverse jump logic + ; Peephole 162 removed sjmp by inverse jump logic jz %2 %1:} @@ -838,7 +838,7 @@ replace { sjmp %2 %1: } by { - ; Peephole 163 removed sjmp by inverse jump logic + ; Peephole 163 removed sjmp by inverse jump logic jnz %2 %1:} @@ -847,7 +847,7 @@ replace { sjmp %2 %1: } by { - ; Peephole 164 removed sjmp by inverse jump logic + ; Peephole 164 removed sjmp by inverse jump logic jb %3,%2 %1: } @@ -857,7 +857,7 @@ replace { sjmp %2 %1: } by { - ; Peephole 165 removed sjmp by inverse jump logic + ; Peephole 165 removed sjmp by inverse jump logic jnb %3,%2 %1: } @@ -867,7 +867,7 @@ replace { mov %3,%1 mov %2,%1 } by { - ; Peephole 166 removed redundant mov + ; Peephole 166 removed redundant mov mov %1,%2 mov %3,%1 } @@ -876,14 +876,14 @@ replace { cpl c mov %1,c } by { - ; Peephole 167 removed redundant bit moves (c not set to %1) + ; Peephole 167 removed redundant bit moves (c not set to %1) cpl %1 } replace { jnb %1,%2 sjmp %3 %2:} by { - ; Peephole 168 jump optimization + ; Peephole 168 jump optimization jb %1,%3 %2:} @@ -891,7 +891,7 @@ replace { jb %1,%2 sjmp %3 %2:} by { - ; Peephole 169 jump optimization + ; Peephole 169 jump optimization jnb %1,%3 %2:} @@ -902,7 +902,7 @@ replace { %3: jz %4 } by { - ; Peephole 170 jump optimization + ; Peephole 170 jump optimization cjne %1,%2,%4 %3: } if labelRefCount %3 1 @@ -915,7 +915,7 @@ replace { %3: jz %4 } by { - ; Peephole 171 jump optimization + ; Peephole 171 jump optimization cjne %1,%2,%4 cjne %9,%10,%4 %3: @@ -930,7 +930,7 @@ replace { %3: jz %4 } by { - ; Peephole 172 jump optimization + ; Peephole 172 jump optimization cjne %1,%2,%4 cjne %9,%10,%4 cjne %11,%12,%4 @@ -947,7 +947,7 @@ replace { %3: jz %4 } by { - ; Peephole 173 jump optimization + ; Peephole 173 jump optimization cjne %1,%2,%4 cjne %9,%10,%4 cjne %11,%12,%4 @@ -962,7 +962,7 @@ replace { subb a,#0x01 mov %2,a } by { - ; Peephole 174 optimized decrement (acc not set to %2, flags undefined) + ; Peephole 174 optimized decrement (acc not set to %2, flags undefined) mov r%1,%2 dec %2 } @@ -974,7 +974,7 @@ replace { add a,#0x01 mov %2,a } by { - ; Peephole 175 optimized increment (acc not set to %2, flags undefined) + ; Peephole 175 optimized increment (acc not set to %2, flags undefined) mov r%1,%2 inc %2 } @@ -984,7 +984,7 @@ replace { inc %1 mov @r%2,%1 } by { - ; Peephole 176 optimized increment, removed redundant mov + ; Peephole 176 optimized increment, removed redundant mov inc @r%2 mov %1,@r%2 } @@ -994,7 +994,7 @@ replace { // mov %1,%2 // mov %2,%1 //} by { -// ; Peephole 177 removed redundant mov +// ; Peephole 177 removed redundant mov // mov %1,%2 //} @@ -1003,7 +1003,7 @@ replace { mov b,a mov a,%2 } by { - ; Peephole 178 removed redundant mov + ; Peephole 178 removed redundant mov mov b,%1 mov a,%2 } @@ -1014,7 +1014,7 @@ replace { mov b,#0x00 mov a,#0x00 } by { - ; Peephole 179 changed mov to clr + ; Peephole 179 changed mov to clr clr a mov b,a } @@ -1023,7 +1023,7 @@ replace { replace { mov a,#0x00 } by { - ; Peephole 180 changed mov to clr + ; Peephole 180 changed mov to clr clr a } @@ -1032,7 +1032,7 @@ replace { mov dpl,#0x00 mov dph,#0x00 } by { - ; Peephole 181 used 16 bit load of dptr + ; Peephole 181 used 16 bit load of dptr mov dptr,#0x0000 } @@ -1042,7 +1042,7 @@ replace { mov dpl,#%1 mov dph,#(%1 >> 8) } by { - ; Peephole 182a use 16 bit load of DPTR + ; Peephole 182a use 16 bit load of DPTR mov dptr,#%1 } @@ -1051,7 +1051,7 @@ replace { mov dpl,#%1 mov dph,#%2 } by { - ; Peephole 182 used 16 bit load of dptr + ; Peephole 182 used 16 bit load of dptr mov dptr,#(((%2)<<8) + %1) } @@ -1059,7 +1059,7 @@ replace { anl %1,#%2 anl %1,#%3 } by { - ; Peephole 183 avoided anl during execution + ; Peephole 183 avoided anl during execution anl %1,#(%2 & %3) } @@ -1068,7 +1068,7 @@ replace { cpl a mov %1,a } by { - ; Peephole 184 removed redundant mov + ; Peephole 184 removed redundant mov cpl a mov %1,a } @@ -1078,7 +1078,7 @@ replace { mov %1,a inc %1 } by { - ; Peephole 185 changed order of increment (acc incremented also!) + ; Peephole 185 changed order of increment (acc incremented also!) inc a mov %1,a } @@ -1103,7 +1103,7 @@ replace { inc dptr clr a } by { - ; Peephole 186.a optimized movc sequence + ; Peephole 186.a optimized movc sequence mov dptr,#%1 mov b,acc movc a,@a+dptr @@ -1135,7 +1135,7 @@ replace { inc dptr clr a } by { - ; Peephole 186.b optimized movc sequence + ; Peephole 186.b optimized movc sequence mov dptr,#%1 mov b,acc movc a,@a+dptr @@ -1160,7 +1160,7 @@ replace { inc dptr clr a } by { - ; Peephole 186.c optimized movc sequence + ; Peephole 186.c optimized movc sequence mov dptr,#%1 mov b,acc movc a,@a+dptr @@ -1178,7 +1178,7 @@ replace { clr a movc a,@a+dptr } by { - ; Peephole 186 optimized movc sequence + ; Peephole 186 optimized movc sequence mov dptr,#%1 movc a,@a+dptr } @@ -1188,7 +1188,7 @@ replace { anl ar%1,#%3 mov a,r%1 } by { - ; Peephole 187 used a instead of ar%1 for anl + ; Peephole 187 used a instead of ar%1 for anl mov a,%2 anl a,#%3 mov r%1,a @@ -1200,7 +1200,7 @@ replace { movc a,@a+dptr mov %1,a } by { - ; Peephole 188 removed redundant mov + ; Peephole 188 removed redundant mov mov dptr,%2 movc a,@a+dptr mov %1,a @@ -1212,7 +1212,7 @@ replace { mov a,#0x0f anl a,%1 } by { - ; Peephole 189 removed redundant mov and anl + ; Peephole 189 removed redundant mov and anl anl a,#0x0f mov %1,a } @@ -1223,7 +1223,7 @@ replace { lcall __gptrput mov a,%1 } by { - ; Peephole 190 removed redundant mov + ; Peephole 190 removed redundant mov mov a,%1 lcall __gptrput } @@ -1235,7 +1235,7 @@ replace { mov b,%4 mov a,%1 } by { - ; Peephole 191 removed redundant mov + ; Peephole 191 removed redundant mov mov %1,a mov dpl,%2 mov dph,%3 @@ -1246,7 +1246,7 @@ replace { mov r%1,a mov @r%2,ar%1 } by { - ; Peephole 192 used a instead of ar%1 as source + ; Peephole 192 used a instead of ar%1 as source mov r%1,a mov @r%2,a } @@ -1263,7 +1263,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 193.a optimized misc jump sequence + ; Peephole 193.a optimized misc jump sequence jnz %8 mov a,%4 jnz %8 @@ -1287,7 +1287,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 193 optimized misc jump sequence + ; Peephole 193 optimized misc jump sequence cjne %1,%2,%8 mov a,%4 cjne %5,%6,%8 @@ -1311,7 +1311,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 193.a optimized misc jump sequence + ; Peephole 193.a optimized misc jump sequence cjne @%1,%2,%8 inc %1 cjne @%1,%6,%8 @@ -1332,7 +1332,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 194 optimized misc jump sequence + ; Peephole 194 optimized misc jump sequence cjne %1,%2,%8 cjne %5,%6,%8 cjne %10,%11,%8 @@ -1351,7 +1351,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 195.a optimized misc jump sequence + ; Peephole 195.a optimized misc jump sequence jnz %8 mov a,%4 jnz %8 @@ -1371,7 +1371,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 195 optimized misc jump sequence + ; Peephole 195 optimized misc jump sequence cjne %1,%2,%8 mov a,%4 cjne %5,%6,%8 @@ -1391,7 +1391,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 195.a optimized misc jump sequence + ; Peephole 195.a optimized misc jump sequence cjne @%1,%2,%8 inc %1 cjne @%1,%6,%8 @@ -1409,7 +1409,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 196 optimized misc jump sequence + ; Peephole 196 optimized misc jump sequence cjne %1,%2,%8 cjne %5,%6,%8 cjne %10,%11,%8 @@ -1425,7 +1425,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 197.a optimized misc jump sequence + ; Peephole 197.a optimized misc jump sequence jnz %8 mov a,%4 cjne %5,%6,%8 @@ -1441,7 +1441,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 197 optimized misc jump sequence + ; Peephole 197 optimized misc jump sequence cjne %1,%2,%8 mov a,%4 cjne %5,%6,%8 @@ -1457,7 +1457,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 197.a optimized misc jump sequence + ; Peephole 197.a optimized misc jump sequence cjne @%1,%2,%8 inc %1 cjne @%1,%6,%8 @@ -1472,7 +1472,7 @@ replace { %3: sjmp %8 } by { - ; Peephole 198 optimized misc jump sequence + ; Peephole 198 optimized misc jump sequence cjne %1,%2,%8 cjne %5,%6,%8 sjmp %7 @@ -1485,7 +1485,7 @@ replace { %3: sjmp %5 } by { - ; Peephole 199 optimized misc jump sequence + ; Peephole 199 optimized misc jump sequence cjne %1,%2,%5 sjmp %4 ;%3: @@ -1495,7 +1495,7 @@ replace { sjmp %1 %1: } by { - ; Peephole 200 removed redundant sjmp + ; Peephole 200 removed redundant sjmp %1: } @@ -1504,7 +1504,7 @@ replace { %2: %1: } by { - ; Peephole 201 removed redundant sjmp + ; Peephole 201 removed redundant sjmp %2: %1: } @@ -1514,7 +1514,7 @@ replace { mov dptr,%1 pop acc } by { - ; Peephole 202 removed redundant push pop + ; Peephole 202 removed redundant push pop mov dptr,%1 } @@ -1523,7 +1523,7 @@ replace { lcall %2 mov r%1,_spx } by { - ; Peephole 203 removed mov r%1,_spx + ; Peephole 203 removed mov r%1,_spx lcall %2 } @@ -1532,7 +1532,7 @@ replace { add a,acc mov %1,a } by { - ; Peephole 204 removed redundant mov + ; Peephole 204 removed redundant mov add a,acc mov %1,a } @@ -1544,7 +1544,7 @@ replace { sjmp %4 %3: } by { - ; Peephole 205 optimized misc jump sequence + ; Peephole 205 optimized misc jump sequence djnz %1,%4 %2: %3: @@ -1553,7 +1553,7 @@ replace { replace { mov %1,%1 } by { - ; Peephole 206 removed redundant mov %1,%1 + ; Peephole 206 removed redundant mov %1,%1 } replace { @@ -1561,7 +1561,7 @@ replace { add a,#0x00 mov %1,a } by { - ; Peephole 207 removed zero add (acc not set to %1, flags undefined) + ; Peephole 207 removed zero add (acc not set to %1, flags undefined) mov %1,_bp } @@ -1570,7 +1570,7 @@ replace { mov r%1,_bp pop acc } by { - ; Peephole 208 removed redundant push pop + ; Peephole 208 removed redundant push pop mov r%1,_bp } @@ -1580,7 +1580,7 @@ replace { inc a mov %1,a } by { - ; Peephole 209 optimized increment (acc not set to %1, flags undefined) + ; Peephole 209 optimized increment (acc not set to %1, flags undefined) mov %1,_bp inc %1 } @@ -1588,7 +1588,7 @@ replace { replace { mov dptr,#((((%1 >> 8)) <<8) + %1) } by { - ; Peephole 210 simplified expression + ; Peephole 210 simplified expression mov dptr,#%1 } @@ -1596,7 +1596,7 @@ replace { push %1 pop %1 } by { - ; Peephole 211 removed redundant push %1 pop %1 + ; Peephole 211 removed redundant push %1 pop %1 } replace { @@ -1604,7 +1604,7 @@ replace { add a,#0x01 mov r%1,a } by { - ; Peephole 212 reduced add sequence to inc + ; Peephole 212 reduced add sequence to inc mov r%1,_bp inc r%1 } @@ -1628,7 +1628,7 @@ replace { mov a,%2 add a,%1 } by { - ; Peephole 214 reduced some extra movs + ; Peephole 214 reduced some extra movs mov %1,a add a,%2 } if operandsNotSame @@ -1638,7 +1638,7 @@ replace { add a,%2 mov %1,a } by { - ; Peephole 215 removed some movs + ; Peephole 215 removed some movs add a,%2 mov %1,a } if operandsNotSame @@ -1651,7 +1651,7 @@ replace { dec r%1 mov @r%1,a } by { - ; Peephole 216 simplified clear (2bytes) + ; Peephole 216 simplified clear (2bytes) mov r%1,%2 clr a mov @r%1,a @@ -1670,7 +1670,7 @@ replace { dec r%1 mov @r%1,a } by { - ; Peephole 217 simplified clear (3bytes) + ; Peephole 217 simplified clear (3bytes) mov r%1,%2 clr a mov @r%1,a @@ -1694,7 +1694,7 @@ replace { dec r%1 mov @r%1,a } by { - ; Peephole 218 simplified clear (4bytes) + ; Peephole 218 simplified clear (4bytes) mov r%1,%2 clr a mov @r%1,a @@ -1713,7 +1713,7 @@ replace { clr a movx @dptr,a } by { - ; Peephole 219 removed redundant clear + ; Peephole 219 removed redundant clear clr a movx @dptr,a mov dptr,%1 @@ -1729,7 +1729,7 @@ replace { clr a movx @dptr,a } by { - ; Peephole 219a removed redundant clear + ; Peephole 219a removed redundant clear clr a movx @dptr,a mov dptr,%1 @@ -1742,7 +1742,7 @@ replace { mov dps, #0x00 mov dps, #0x01 } by { - ; Peephole 220a removed bogus DPS set + ; Peephole 220a removed bogus DPS set mov dps, #0x01 } @@ -1750,20 +1750,20 @@ replace { mov dps, #0x01 mov dps, #0x00 } by { - ; Peephole 220b removed bogus DPS set + ; Peephole 220b removed bogus DPS set mov dps, #0x00 } replace { mov %1 + %2,(%2 + %1) } by { - ; Peephole 221a remove redundant move + ; Peephole 221a remove redundant move } replace { mov (%1 + %2 + %3),((%2 + %1) + %3) } by { - ; Peephole 221b remove redundant move + ; Peephole 221b remove redundant move } replace { @@ -1779,7 +1779,7 @@ replace { mov dpl,%1 mov dph,%2 } by { - ; Peephole 223 removed redundant dph/dpl moves + ; Peephole 223 removed redundant dph/dpl moves mov %1,dpl mov %2,dph } @@ -1790,7 +1790,7 @@ replace { mov dpl,%1 mov dph,(%1 + 1) } by { - ; Peephole 224 removed redundant dph/dpl moves + ; Peephole 224 removed redundant dph/dpl moves mov %1,dpl mov (%1 + 1),dph } @@ -1803,7 +1803,7 @@ replace { mov b,%4 mov a,%1 } by { - ; Peephole 225 removed redundant move to acc + ; Peephole 225 removed redundant move to acc mov a,%1 movx @dptr,a mov dpl,%2 @@ -1819,7 +1819,7 @@ replace { inc dptr clr a } by { - ; Peephole 226 removed unnecessary clr + ; Peephole 226 removed unnecessary clr clr a movx @dptr,a inc dptr @@ -1841,7 +1841,7 @@ replace { lcall __decdptr movx @dptr,a } by { - ; Peephole 227 replaced inefficient 32 bit clear + ; Peephole 227 replaced inefficient 32 bit clear mov dptr,#%1 clr a movx @dptr,a @@ -1869,7 +1869,7 @@ replace { mov a,#%2 movx @dptr,a } by { - ; Peephole 228 replaced inefficient 32 constant + ; Peephole 228 replaced inefficient 32 constant mov dptr,#%1 mov a, #%2 movx @dptr,a @@ -1891,7 +1891,7 @@ replace { lcall __decdptr movx @dptr,a } by { - ; Peephole 229 replaced inefficient 16 bit clear + ; Peephole 229 replaced inefficient 16 bit clear mov dptr,#%1 clr a movx @dptr,a @@ -1909,7 +1909,7 @@ replace { mov a,#%2 movx @dptr,a } by { - ; Peephole 230 replaced inefficient 16 constant + ; Peephole 230 replaced inefficient 16 constant mov dptr,#%1 mov a,#%2 movx @dptr,a @@ -1924,14 +1924,14 @@ replace { mov dptr,#%1 mov dptr,#%2 } by { - ; Peephole 231 removed redundant mov to dptr + ; Peephole 231 removed redundant mov to dptr mov dptr,#%2 } replace { movx a,@dptr } by { - ; Peephole 232 using movc to read xdata (--xram-movc) + ; Peephole 232 using movc to read xdata (--xram-movc) clr a movc a,@a+dptr } if xramMovcOption @@ -1939,7 +1939,7 @@ replace { replace { lcall _gptrget } by { - ; Peephole 233 using _gptrgetc instead of _gptrget (--xram-movc) + ; Peephole 233 using _gptrgetc instead of _gptrget (--xram-movc) lcall _gptrgetc } if xramMovcOption @@ -1949,7 +1949,7 @@ replace { %2: ret } by { - ; Peephole 234 loading dpl directly from a(ccumulator) + ; Peephole 234 loading dpl directly from a(ccumulator) mov dpl,a %2: ret @@ -1962,7 +1962,7 @@ replace { %3: ret } by { - ; Peephole 235 loading dph directly from a(ccumulator) + ; Peephole 235 loading dph directly from a(ccumulator) mov dpl,r%2 mov dph,a %3: @@ -1974,98 +1974,98 @@ replace { replace { add a,ar%1 } by { - ; Peephole 236a + ; Peephole 236a add a,r%1 } replace { addc a,ar%1 } by { - ; Peephole 236b + ; Peephole 236b addc a,r%1 } replace { anl a,ar%1 } by { - ; Peephole 236c + ; Peephole 236c anl a,r%1 } replace { dec ar%1 } by { - ; Peephole 236d + ; Peephole 236d dec r%1 } replace { djnz ar%1,%2 } by { - ; Peephole 236e + ; Peephole 236e djnz r%1,%2 } replace { inc ar%1 } by { - ; Peephole 236f + ; Peephole 236f inc r%1 } replace { mov a,ar%1 } by { - ; Peephole 236g + ; Peephole 236g mov a,r%1 } replace { mov ar%1,#%2 } by { - ; Peephole 236h + ; Peephole 236h mov r%1,#%2 } replace { mov ar%1,a } by { - ; Peephole 236i + ; Peephole 236i mov r%1,a } replace { mov ar%1,ar%2 } by { - ; Peephole 236j + ; Peephole 236j mov r%1,ar%2 } replace { orl a,ar%1 } by { - ; Peephole 236k + ; Peephole 236k orl a,r%1 } replace { subb a,ar%1 } by { - ; Peephole 236l + ; Peephole 236l subb a,r%1 } replace { xch a,ar%1 } by { - ; Peephole 236m + ; Peephole 236m xch a,r%1 } replace { xrl a,ar%1 } by { - ; Peephole 236n + ; Peephole 236n xrl a,r%1 } @@ -2076,7 +2076,7 @@ replace { %1: ret } by { - ; Peephole 237a removed sjmp to ret + ; Peephole 237a removed sjmp to ret ret %2: mov %3,%4 @@ -2093,7 +2093,7 @@ replace { %1: ret } by { - ; Peephole 237b removed sjmp to ret + ; Peephole 237b removed sjmp to ret ret %2: mov %3,%4