finally enable all those work-in-progress optimizations; fix bug in literal load...
authorkvigor <kvigor@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 29 Sep 2000 05:14:33 +0000 (05:14 +0000)
committerkvigor <kvigor@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 29 Sep 2000 05:14:33 +0000 (05:14 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@417 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/ds390/gen.c

index 51b004b5164b236648202500d4b3b2d34659e0bb..92089ca88d4e84707d447f8e45470bcf2a506897 100644 (file)
@@ -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),