don't understand why all bit operations operands need to be unsigned changed
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 10 Nov 2001 06:37:34 +0000 (06:37 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 10 Nov 2001 06:37:34 +0000 (06:37 +0000)
this, since it was causing BIG problems with CSE

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1549 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCicode.c

index 4ca47ca57af6f6391f62d1fba6361d8204476f04..b7b7841cf16bad7cf5c51c178753d679420c06f2 100644 (file)
@@ -2292,7 +2292,8 @@ geniCodeBitwise (operand * left, operand * right,
   iCode *ic;
 
   // bitwise operations must be done unsigned
-  SPEC_USIGN(resType)=1;
+  // WHY ? causes very bad things to happen with CSE
+  //  SPEC_USIGN(resType)=1;
 
   left = geniCodeCast (resType, left, TRUE);
   right = geniCodeCast (resType, right, TRUE);