* src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
[fw/sdcc] / src / mcs51 / gen.c
index c7c176022d2f5376e22459f6c37fdd194616324b..a36937f2b817765617bed83f1104f2b910f8858e 100644 (file)
@@ -954,7 +954,7 @@ aopOp (operand * op, iCode * ic, bool result)
   if (sym->regType == REG_CND)
     {
       sym->aop = op->aop = aop = newAsmop (AOP_CRY);
-      aop->size = 0;
+      aop->size = sym->ruonly ? 1 : 0;
       return;
     }
 
@@ -7460,7 +7460,7 @@ genXor (iCode * ic, iCode * ifx)
       // val = c
       if (size)
         outBitC (result);
-      // if(bit | ...)
+      // if(bit ^ ...)
       else if ((AOP_TYPE (result) == AOP_CRY) && ifx)
         genIfxJump (ifx, "c", left, right, result);
       goto release;