Commit b329456e by James Van Artsdalen

(alter_cond): If CC_NOT_SIGNED, convert signed conditions to unsigned.

From-SVN: r2413
parent e8a2790c
...@@ -1940,7 +1940,33 @@ alter_cond (cond) ...@@ -1940,7 +1940,33 @@ alter_cond (cond)
value = 2; value = 2;
break; break;
} }
if (cc_status.flags & CC_NOT_SIGNED)
/* The flags are valid if signed condition operators are converted
to unsigned. */
switch (GET_CODE (cond))
{
case LE:
PUT_CODE (cond, LEU);
value = 2;
break;
case LT:
PUT_CODE (cond, LTU);
value = 2;
break;
case GT:
PUT_CODE (cond, GTU);
value = 2;
break;
case GE:
PUT_CODE (cond, GEU);
value = 2;
break;
}
return value; return value;
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment