* support/regression/tests/bug1198642.c: new test
[fw/sdcc] / src / SDCCcse.c
index 4b524b0bf5fb1b82e0a148e3da5e11687f523563..316c5c9c7f8a1eae0d60ade5e424e63f13cb5b09 100644 (file)
@@ -492,7 +492,7 @@ DEFSETFUNC (findPrevIc)
   /* if iCodes are not the same */
   /* see the operands maybe interchanged */
   if (ic->op == cdp->diCode->op &&
-      (ic->op == '+' || ic->op == '*') &&
+      (ic->op == '+' || ic->op == '*') && // MB: why not check for &, &&, |, ||, ^ ???
       isOperandEqual (IC_LEFT (ic), IC_RIGHT (cdp->diCode)) &&
       isOperandEqual (IC_RIGHT (ic), IC_LEFT (cdp->diCode)))
     {