From: kvigor Date: Fri, 29 Sep 2000 05:14:33 +0000 (+0000) Subject: finally enable all those work-in-progress optimizations; fix bug in literal load... X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=98bfe97809a991b38ed4151e5461a5e6560d21ed;p=fw%2Fsdcc finally enable all those work-in-progress optimizations; fix bug in literal load code git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@417 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/gen.c b/src/ds390/gen.c index 51b004b5..92089ca8 100644 --- a/src/ds390/gen.c +++ b/src/ds390/gen.c @@ -241,7 +241,8 @@ static asmop *newAsmop (short type) return aop; } -/* #define LAZY_DPS_OPT */ /* turn this on after some more testing. */ +/* Turn this off if the world goes to hell. */ +#define LAZY_DPS_OPT static int _currentDPS; /* Current processor DPS. */ static int _desiredDPS; /* DPS value compiler thinks we should be using. */ @@ -7887,7 +7888,7 @@ static void genAssign (iCode *ic) #ifdef LAZY_DPS_OPT D(emitcode(";", "Kevin's better literal load code");); _startLazyDPSEvaluation(); - while (size && ((unsigned int)((lit >> (offset*8)) & 0xff) != 0)) + while (size && ((unsigned int)(lit >> (offset*8)) != 0)) { aopPut(AOP(result), aopGet(AOP(right),offset,FALSE,FALSE,TRUE),