* src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
[fw/sdcc] / src / z80 / ralloc.c
index 95682c0f9f223efdca7f4c8408511081c5b8bb7d..dd248b713dad259261e08f6b3c7eae6bd78ca010 100644 (file)
@@ -2046,6 +2046,11 @@ packRegsForHLUse (iCode * ic)
       return;
     }
 
+  if (getSize (operandType (IC_RESULT (ic))) != 2)
+    {
+      D (D_HLUSE, ("  + Dropping as the result size is not 2\n"));
+    }
+
   if (IS_Z80)
     {
       if (ic->op == CAST && uic->op == IPUSH)
@@ -2064,7 +2069,7 @@ packRegsForHLUse (iCode * ic)
             {
               goto hluse;
             }
-          else if (uic->op == IPUSH)
+          else if (uic->op == IPUSH && getSize (operandType (IC_LEFT (uic))) == 2)
             {
               goto hluse;
             }