X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fpic16%2Fgenarith.c;h=79574276420fb8a15097a899948d5d5fc29bf2a7;hb=7a742aa53d932c986e05ab285410366d414e23a4;hp=9f6a859579a900255da5c32ce4df61ccb51700a4;hpb=43082e9855dafdd47d0dc6649c63e47ad7a842c0;p=fw%2Fsdcc diff --git a/src/pic16/genarith.c b/src/pic16/genarith.c index 9f6a8595..79574276 100644 --- a/src/pic16/genarith.c +++ b/src/pic16/genarith.c @@ -180,8 +180,8 @@ bool pic16_genPlusIncr (iCode *ic) DEBUGpic16_emitcode ("; ","%s %d",__FUNCTION__,__LINE__); /* if the literal value of the right hand side - is greater than 1 then it is faster to add */ - if ((icount = (unsigned int) floatFromVal (AOP(IC_RIGHT(ic))->aopu.aop_lit)) > 1) // this was > 2 why? VR + is greater than 2 then it is faster to add */ + if ((icount = (unsigned int) floatFromVal (AOP(IC_RIGHT(ic))->aopu.aop_lit)) > 2) return FALSE ; /* if increment 16 bits in register */ @@ -228,7 +228,6 @@ bool pic16_genPlusIncr (iCode *ic) } - /* if the sizes are greater than 1 then we cannot */ if (AOP_SIZE(IC_RESULT(ic)) > 1 || AOP_SIZE(IC_LEFT(ic)) > 1 )