+2003-06-25 Bernhard Held <bernhard@bernhardheld.de>
+
+ * src/mcs51/gen.c (gencjneshort): fixed bug #760345
+
2003-06-20 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
* as/mcs51/aomf51.c: Make sure the size of the last procedure is correct.
/* if the right side is a literal then anything goes */
if (AOP_TYPE (right) == AOP_LIT &&
- AOP_TYPE (left) != AOP_DIR)
+ AOP_TYPE (left) != AOP_DIR &&
+ AOP_TYPE (left) != AOP_IMMD)
{
while (size--)
{
if the left is a pointer register & right is not */
else if (AOP_TYPE (right) == AOP_REG ||
AOP_TYPE (right) == AOP_DIR ||
+ AOP_TYPE (right) == AOP_LIT ||
(AOP_TYPE (left) == AOP_DIR && AOP_TYPE (right) == AOP_LIT) ||
(IS_AOP_PREG (left) && !IS_AOP_PREG (right)))
{